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