From: Amos Jeffries Date: Tue, 1 Mar 2016 02:57:50 +0000 (+1300) Subject: RFC 7725: Add registry entry for 451 status text X-Git-Tag: SQUID_4_0_8~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6fb73c28cf4dfe144a0e330916296b7fb7da61b0;p=thirdparty%2Fsquid.git RFC 7725: Add registry entry for 451 status text While Squid does not generate these messages automatically we still have to relay the status line text accurately, and admin may want to use it for deny_info status. --- diff --git a/src/http/StatusCode.cc b/src/http/StatusCode.cc index e4ec779383..75bf1c4c41 100644 --- a/src/http/StatusCode.cc +++ b/src/http/StatusCode.cc @@ -212,6 +212,10 @@ Http::StatusCodeString(const Http::StatusCode status) return "Request Header Fields Too Large"; break; + case scUnavailableForLegalReasons: + return "Unavailable For Legal Reasons"; + break; + // 500-599 case Http::scInternalServerError: return "Internal Server Error"; diff --git a/src/http/StatusCode.h b/src/http/StatusCode.h index c9fda16b57..19c00e5500 100644 --- a/src/http/StatusCode.h +++ b/src/http/StatusCode.h @@ -66,6 +66,7 @@ typedef enum { scPreconditionRequired = 428, /**< RFC6585 */ scTooManyRequests = 429, /**< RFC6585 */ scRequestHeaderFieldsTooLarge = 431, /**< RFC6585 */ + scUnavailableForLegalReasons = 451, /**< RFC7725 */ scInternalServerError = 500, scNotImplemented = 501, scBadGateway = 502,