From: wessels <> Date: Sat, 5 May 2007 04:12:55 +0000 (+0000) Subject: Add HTTP status codes 416 and 417 to the list that Squid knows about. X-Git-Tag: SQUID_3_0_PRE6~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9e8942b00bc330997102e78efe85ab37a4553d36;p=thirdparty%2Fsquid.git Add HTTP status codes 416 and 417 to the list that Squid knows about. --- diff --git a/src/HttpStatusLine.cc b/src/HttpStatusLine.cc index ece16fe69c..3c2dc3d8bd 100644 --- a/src/HttpStatusLine.cc +++ b/src/HttpStatusLine.cc @@ -1,6 +1,6 @@ /* - * $Id: HttpStatusLine.cc,v 1.31 2007/04/28 22:26:37 hno Exp $ + * $Id: HttpStatusLine.cc,v 1.32 2007/05/04 22:12:55 wessels Exp $ * * DEBUG: section 57 HTTP Status-line * AUTHOR: Alex Rousskov @@ -259,6 +259,14 @@ httpStatusString(http_status status) p = "Unsupported Media Type"; break; + case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE: + p = "Requested Range Not Satisfiable"; + break; + + case HTTP_EXPECTATION_FAILED: + p = "Expectation Failed"; + break; + case HTTP_INTERNAL_SERVER_ERROR: p = "Internal Server Error"; break; diff --git a/src/enums.h b/src/enums.h index 63f231ab6a..af0c1e36ec 100644 --- a/src/enums.h +++ b/src/enums.h @@ -1,6 +1,6 @@ /* - * $Id: enums.h,v 1.256 2007/04/20 07:29:47 wessels Exp $ + * $Id: enums.h,v 1.257 2007/05/04 22:12:55 wessels Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -289,6 +289,8 @@ typedef enum { HTTP_REQUEST_ENTITY_TOO_LARGE = 413, HTTP_REQUEST_URI_TOO_LARGE = 414, HTTP_UNSUPPORTED_MEDIA_TYPE = 415, + HTTP_REQUESTED_RANGE_NOT_SATISFIABLE = 416, + HTTP_EXPECTATION_FAILED = 417, HTTP_UNPROCESSABLE_ENTITY = 422, /* RFC2518 section 10.3 */ HTTP_LOCKED = 423, /* RFC2518 section 10.4 */ HTTP_FAILED_DEPENDENCY = 424, /* RFC2518 section 10.5 */