Add support for status 421 responses. Squid is forbidden from generating
messages with this status in its role as proxy, however we expect to see
it being produced in responses by HTTP/2 servers in traffic from HTTP
2.0<->1.1 gateways.
We also MAY emit it on future reverse-proxy responses in the event of a
ERR_CANNOT_FORWARD message.
case Http::scServiceUnavailable:
case Http::scGatewayTimeout:
+ case Http::scMisdirectedRequest:
+
debugs(22, 3, "MAYBE because HTTP status " << rep->sline.status());
return -1;
return "Expectation Failed";
break;
+ case Http::scMisdirectedRequest:
+ return "Misdirected Request";
+ break;
+
case Http::scUnprocessableEntity:
return "Unprocessable Entity";
break;
scUnsupportedMediaType = 415,
scRequestedRangeNotSatisfied = 416,
scExpectationFailed = 417,
+ scMisdirectedRequest = 421, /**< draft-ietf-httpbis-http2-16 section 9.1.2 */
scUnprocessableEntity = 422, /**< RFC2518 section 10.3 / RFC4918 */
scLocked = 423, /**< RFC2518 section 10.4 / RFC4918 */
scFailedDependency = 424, /**< RFC2518 section 10.5 / RFC4918 */