1 #ifndef _SQUID_SRC_HTTP_STATUSCODE_H
2 #define _SQUID_SRC_HTTP_STATUSCODE_H
8 * These basic HTTP reply status codes are defined by RFC 2616 unless otherwise stated.
13 scSwitchingProtocols
= 101,
14 scProcessing
= 102, /**< RFC2518 section 10.1 */
18 scNonAuthoritativeInformation
= 203,
21 scPartialContent
= 206,
22 scMultiStatus
= 207, /**< RFC2518 section 10.2 */
23 scMultipleChoices
= 300,
24 scMovedPermanently
= 301,
25 scMovedTemporarily
= 302,
29 scTemporaryRedirect
= 307,
30 scPermanentRedirect
= 308,
33 scPaymentRequired
= 402,
36 scMethodNotAllowed
= 405,
37 scNotAcceptable
= 406,
38 scProxyAuthenticationRequired
= 407,
39 scRequestTimeout
= 408,
42 scLengthRequired
= 411,
43 scPreconditionFailed
= 412,
44 scRequestEntityTooLarge
= 413,
45 scRequestUriTooLarge
= 414,
46 scUnsupportedMediaType
= 415,
47 scRequestedRangeNotSatisfied
= 416,
48 scExpectationFailed
= 417,
49 scUnprocessableEntity
= 422, /**< RFC2518 section 10.3 */
50 scLocked
= 423, /**< RFC2518 section 10.4 */
51 scFailedDependency
= 424, /**< RFC2518 section 10.5 */
52 scPreconditionRequired
= 428, /**< RFC6585 */
53 scTooManyFields
= 429, /**< RFC6585 */
54 scRequestHeaderFieldsTooLarge
= 431, /**< RFC6585 */
55 scInternalServerError
= 500,
56 scNotImplemented
= 501,
58 scServiceUnavailable
= 503,
59 scGateway_Timeout
= 504,
60 scHttpVersionNotSupported
= 505,
61 scInsufficientStorage
= 507, /**< RFC2518 section 10.6 */
62 scNetworkAuthenticationRequired
= 511, /**< RFC6585 */
64 // The 6xx codes below are for internal use only: Bad requests result
65 // in scBadRequest; bad responses in scGateway_Timeout.
67 scInvalidHeader
= 600, /**< Squid header parsing error */
68 scHeaderTooLarge
= 601 /* Header too large to process */
71 const char *StatusCodeString(const Http::StatusCode status
);
75 #endif /* _SQUID_SRC_HTTP_STATUSCODE_H */