]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add HTTP status codes 416 and 417 to the list that Squid knows about.
authorwessels <>
Sat, 5 May 2007 04:12:55 +0000 (04:12 +0000)
committerwessels <>
Sat, 5 May 2007 04:12:55 +0000 (04:12 +0000)
src/HttpStatusLine.cc
src/enums.h

index ece16fe69c7379122ac46f944275d335355b64e1..3c2dc3d8bd1ab6f9106f5f3d7bf9364d6a88a422 100644 (file)
@@ -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;
index 63f231ab6a04c0c7bd97dbfa09a777c4d8a37c7c..af0c1e36ec0feeb80102b7f6ce5bbbda6a33d6ea 100644 (file)
@@ -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 */