1
0
mirror of synced 2025-04-20 11:47:43 +03:00

Merge pull request #75 from crtxcr/http_response_codes

More status messages for http codes
This commit is contained in:
yhirose 2018-06-01 23:07:14 -04:00 committed by GitHub
commit 890025e347
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -732,7 +732,12 @@ inline const char* status_message(int status)
{
switch (status) {
case 200: return "OK";
case 301: return "Moved Permanently";
case 302: return "Found";
case 303: return "See Other";
case 304: return "Not Modified";
case 400: return "Bad Request";
case 403: return "Forbidden";
case 404: return "Not Found";
case 415: return "Unsupported Media Type";
default: