mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-06 15:51:25 +00:00
Add text msgs for HTTP status codes 400 and 503
PUBLISHED_FROM=1bd3308933354e147c4e8aa375728a1ede6d8ab4
This commit is contained in:
1 parent
78454da3b3
commit
39a17f8a72
1 file changed
+4
@@ -5106,6 +5106,8 @@ const char *mg_status_message(int status_code) {
|
|||||||
return "Moved";
|
return "Moved";
|
||||||
case 302:
|
case 302:
|
||||||
return "Found";
|
return "Found";
|
||||||
|
case 400:
|
||||||
|
return "Bad Request";
|
||||||
case 401:
|
case 401:
|
||||||
return "Unauthorized";
|
return "Unauthorized";
|
||||||
case 403:
|
case 403:
|
||||||
@@ -5120,6 +5122,8 @@ const char *mg_status_message(int status_code) {
|
|||||||
return "Internal Server Error";
|
return "Internal Server Error";
|
||||||
case 502:
|
case 502:
|
||||||
return "Bad Gateway";
|
return "Bad Gateway";
|
||||||
|
case 503:
|
||||||
|
return "Service Unavailable";
|
||||||
default:
|
default:
|
||||||
return "OK";
|
return "OK";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user