File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
AndroidAsync/src/com/koushikdutta/async/http/server Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -330,6 +330,7 @@ public CompletedCallback getErrorCallback() {
330
330
mCodes .put (302 , "Found" );
331
331
mCodes .put (304 , "Not Modified" );
332
332
mCodes .put (400 , "Bad Request" );
333
+ mCodes .put (401 , "Unauthorized" );
333
334
mCodes .put (404 , "Not Found" );
334
335
mCodes .put (500 , "Internal Server Error" );
335
336
}
@@ -341,6 +342,10 @@ public static String getResponseCodeDescription(int code) {
341
342
return d ;
342
343
}
343
344
345
+ public static void addResponseCodeDescription ( int code , String description ) {
346
+ mCodes .put (code , description );
347
+ }
348
+
344
349
public static interface WebSocketRequestCallback {
345
350
void onConnected (WebSocket webSocket , AsyncHttpServerRequest request );
346
351
}
You can’t perform that action at this time.
0 commit comments