Added additonal status messages
This commit is contained in:
parent
06b3dee5aa
commit
4c58b91e40
@ -940,6 +940,7 @@ inline const char *find_content_type(const std::string &path) {
|
|||||||
inline const char *status_message(int status) {
|
inline const char *status_message(int status) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case 200: return "OK";
|
case 200: return "OK";
|
||||||
|
case 206: return "Partial Content";
|
||||||
case 301: return "Moved Permanently";
|
case 301: return "Moved Permanently";
|
||||||
case 302: return "Found";
|
case 302: return "Found";
|
||||||
case 303: return "See Other";
|
case 303: return "See Other";
|
||||||
@ -950,6 +951,8 @@ inline const char *status_message(int status) {
|
|||||||
case 413: return "Payload Too Large";
|
case 413: return "Payload Too Large";
|
||||||
case 414: return "Request-URI Too Long";
|
case 414: return "Request-URI Too Long";
|
||||||
case 415: return "Unsupported Media Type";
|
case 415: return "Unsupported Media Type";
|
||||||
|
case 416: return "Range Not Satisfiable";
|
||||||
|
|
||||||
default:
|
default:
|
||||||
case 500: return "Internal Server Error";
|
case 500: return "Internal Server Error";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user