2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 #ifndef _SQUID_SRC_HTTP_STATUSCODE_H
10 #define _SQUID_SRC_HTTP_STATUSCODE_H
16 * These basic HTTP reply status codes are defined by RFC 2616 unless otherwise stated.
17 * The IANA registry for HTTP status codes can be found at:
18 * http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
23 scSwitchingProtocols
= 101,
24 scProcessing
= 102, /**< RFC2518 section 10.1 */
28 scNonAuthoritativeInformation
= 203,
31 scPartialContent
= 206,
32 scMultiStatus
= 207, /**< RFC2518 section 10.2 / RFC4918 */
33 scAlreadyReported
= 208, /**< RFC5842 */
34 scImUsed
= 226, /**< RFC3229 */
35 scMultipleChoices
= 300,
36 scMovedPermanently
= 301,
41 scTemporaryRedirect
= 307,
42 scPermanentRedirect
= 308, /**< RFC7238 */
45 scPaymentRequired
= 402,
48 scMethodNotAllowed
= 405,
49 scNotAcceptable
= 406,
50 scProxyAuthenticationRequired
= 407,
51 scRequestTimeout
= 408,
54 scLengthRequired
= 411,
55 scPreconditionFailed
= 412,
56 scPayloadTooLarge
= 413,
58 scUnsupportedMediaType
= 415,
59 scRequestedRangeNotSatisfied
= 416,
60 scExpectationFailed
= 417,
61 scUnprocessableEntity
= 422, /**< RFC2518 section 10.3 / RFC4918 */
62 scLocked
= 423, /**< RFC2518 section 10.4 / RFC4918 */
63 scFailedDependency
= 424, /**< RFC2518 section 10.5 / RFC4918 */
64 scUpgradeRequired
= 426,
65 scPreconditionRequired
= 428, /**< RFC6585 */
66 scTooManyRequests
= 429, /**< RFC6585 */
67 scRequestHeaderFieldsTooLarge
= 431, /**< RFC6585 */
68 scInternalServerError
= 500,
69 scNotImplemented
= 501,
71 scServiceUnavailable
= 503,
72 scGatewayTimeout
= 504,
73 scHttpVersionNotSupported
= 505,
74 scVariantAlsoNegotiates
= 506, /**< RFC2295 */
75 scInsufficientStorage
= 507, /**< RFC2518 section 10.6 / RFC4918 */
76 scLoopDetected
= 508, /**< RFC5842 */
77 scNotExtended
= 510, /**< RFC2774 */
78 scNetworkAuthenticationRequired
= 511, /**< RFC6585 */
80 // The 6xx codes below are for internal use only: Bad requests result
81 // in scBadRequest; bad responses in scGatewayTimeout.
83 scInvalidHeader
= 600, /**< Squid header parsing error */
84 scHeaderTooLarge
= 601 /* Header too large to process */
87 const char *StatusCodeString(const Http::StatusCode status
);
91 #endif /* _SQUID_SRC_HTTP_STATUSCODE_H */