Add text msgs for HTTP status codes 400 and 503

PUBLISHED_FROM=1bd3308933354e147c4e8aa375728a1ede6d8ab4
This commit is contained in:
Deomid Ryabkov 2016-11-01 17:53:27 +00:00 committed by Cesanta Bot
parent 78454da3b3
commit 39a17f8a72

View File

@ -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";
} }