From 25e18174dd76a41d2ca258d28e0630e05447e844 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 8 Jul 2014 22:41:17 +0900 Subject: [PATCH] src: Add additional HTTP status codes defined in RFC 6585 --- src/http2.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/http2.cc b/src/http2.cc index 31423ed3..8bb09c7f 100644 --- a/src/http2.cc +++ b/src/http2.cc @@ -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); } }