Skip to content

Commit

Permalink
Merge pull request yhirose#75 from crtxcr/http_response_codes
Browse files Browse the repository at this point in the history
More status messages for http codes
  • Loading branch information
yhirose authored Jun 2, 2018
2 parents 2bb27aa + bb2f96a commit 890025e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 890025e

Please sign in to comment.