Commit 39a17f8a authored by Deomid Ryabkov's avatar Deomid Ryabkov Committed by Cesanta Bot

Add text msgs for HTTP status codes 400 and 503

PUBLISHED_FROM=1bd3308933354e147c4e8aa375728a1ede6d8ab4
parent 78454da3
...@@ -5106,6 +5106,8 @@ const char *mg_status_message(int status_code) { ...@@ -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) { ...@@ -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";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment