src: Add additional HTTP status codes defined in RFC 6585

This commit is contained in:
Tatsuhiro Tsujikawa 2014-07-08 22:41:17 +09:00
parent a072d719b3
commit 25e18174dd
1 changed files with 4 additions and 0 deletions

View File

@ -69,12 +69,16 @@ std::string get_status_string(unsigned int status_code)
case 416: return "416 Requested Range Not Satisfiable";
case 417: return "417 Expectation Failed";
case 426: return "426 Upgrade Required";
case 428: return "428 Precondition Required";
case 429: return "429 Too Many Requests";
case 431: return "431 Request Header Fields Too Large";
case 500: return "500 Internal Server Error";
case 501: return "501 Not Implemented";
case 502: return "502 Bad Gateway";
case 503: return "503 Service Unavailable";
case 504: return "504 Gateway Timeout";
case 505: return "505 HTTP Version Not Supported";
case 511: return "511 Network Authentication Required";
default: return util::utos(status_code);
}
}