We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c19a27 commit 7cb0120Copy full SHA for 7cb0120
AndroidAsync/src/com/koushikdutta/async/http/server/AsyncHttpServer.java
@@ -330,6 +330,7 @@ public CompletedCallback getErrorCallback() {
330
mCodes.put(302, "Found");
331
mCodes.put(304, "Not Modified");
332
mCodes.put(400, "Bad Request");
333
+ mCodes.put(401, "Unauthorized");
334
mCodes.put(404, "Not Found");
335
mCodes.put(500, "Internal Server Error");
336
}
@@ -341,6 +342,10 @@ public static String getResponseCodeDescription(int code) {
341
342
return d;
343
344
345
+ public static void addResponseCodeDescription( int code, String description ) {
346
+ mCodes.put(code, description);
347
+ }
348
+
349
public static interface WebSocketRequestCallback {
350
void onConnected(WebSocket webSocket, AsyncHttpServerRequest request);
351
0 commit comments