From c1be7c734f62fea1e129a57968b815552a5100bc Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 27 Jun 2014 23:02:12 +0900 Subject: [PATCH] src: Update status code according to RFC 7231 --- src/http2.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/http2.cc b/src/http2.cc index 1d941f71..31423ed3 100644 --- a/src/http2.cc +++ b/src/http2.cc @@ -63,11 +63,12 @@ std::string get_status_string(unsigned int status_code) case 410: return "410 Gone"; case 411: return "411 Length Required"; case 412: return "412 Precondition Failed"; - case 413: return "413 Request Entity Too Large"; - case 414: return "414 Request-URI Too Long"; + case 413: return "413 Payload Too Large"; + case 414: return "414 URI Too Long"; case 415: return "415 Unsupported Media Type"; case 416: return "416 Requested Range Not Satisfiable"; case 417: return "417 Expectation Failed"; + case 426: return "426 Upgrade Required"; case 500: return "500 Internal Server Error"; case 501: return "501 Not Implemented"; case 502: return "502 Bad Gateway";