mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 17:28:29 +00:00
Added a few more common http status codes
This commit is contained in:
parent
5b3187e2f9
commit
bb2f96afeb
1 changed files with 5 additions and 0 deletions
|
@ -732,7 +732,12 @@ inline const char* status_message(int status)
|
||||||
{
|
{
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case 200: return "OK";
|
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 400: return "Bad Request";
|
||||||
|
case 403: return "Forbidden";
|
||||||
case 404: return "Not Found";
|
case 404: return "Not Found";
|
||||||
case 415: return "Unsupported Media Type";
|
case 415: return "Unsupported Media Type";
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue