HTTP_GATEWAY_TIMEOUT = 504,
HTTP_HTTP_VERSION_NOT_SUPPORTED = 505,
HTTP_INSUFFICIENT_STORAGE = 507, /**< RFC2518 section 10.6 */
+
+ // The 6xx codes below are for internal use only: Bad requests result
+ // in HTTP_BAD_REQUEST; bad responses in HTTP_GATEWAY_TIMEOUT.
+
HTTP_INVALID_HEADER = 600, /**< Squid header parsing error */
HTTP_HEADER_TOO_LARGE = 601 /* Header too large to process */
} http_status;
assert (repContext);
switch (hp->request_parse_status) {
case HTTP_HEADER_TOO_LARGE:
- repContext->setReplyToError(ERR_TOO_BIG, HTTP_HEADER_TOO_LARGE, method, http->uri, conn->peer, NULL, conn->in.buf, NULL);
+ repContext->setReplyToError(ERR_TOO_BIG, HTTP_BAD_REQUEST, method, http->uri, conn->peer, NULL, conn->in.buf, NULL);
break;
case HTTP_METHOD_NOT_ALLOWED:
repContext->setReplyToError(ERR_UNSUP_REQ, HTTP_METHOD_NOT_ALLOWED, method, http->uri, conn->peer, NULL, conn->in.buf, NULL);