]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Update HTTP status codes (#1942)
authorAmos Jeffries <yadij@users.noreply.github.com>
Tue, 12 Nov 2024 00:00:38 +0000 (00:00 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Tue, 12 Nov 2024 00:00:46 +0000 (00:00 +0000)
Also remove comments that replicate what the registry documents.

src/http/StatusCode.h

index 2bad7ab1b10bba1fda1cfd6aa123431f1c5456e3..19c227efdb7f18d97d42a20aa04c128bd163af0a 100644 (file)
@@ -21,8 +21,9 @@ typedef enum {
     scNone = 0,
     scContinue = 100,
     scSwitchingProtocols = 101,
-    scProcessing = 102,      /**< RFC2518 section 10.1 */
-    scEarlyHints = 103,      /**< draft-kazuho-early-hints-status-code */
+    scProcessing = 102,
+    scEarlyHints = 103,
+    scUploadResumptionSupported = 104,
     scOkay = 200,
     scCreated = 201,
     scAccepted = 202,
@@ -30,9 +31,9 @@ typedef enum {
     scNoContent = 204,
     scResetContent = 205,
     scPartialContent = 206,
-    scMultiStatus = 207,     /**< RFC2518 section 10.2 / RFC4918 */
-    scAlreadyReported = 208, /**< RFC5842 */
-    scImUsed = 226,          /**< RFC3229 */
+    scMultiStatus = 207,
+    scAlreadyReported = 208,
+    scImUsed = 226,
     scMultipleChoices = 300,
     scMovedPermanently = 301,
     scFound = 302,
@@ -40,7 +41,7 @@ typedef enum {
     scNotModified = 304,
     scUseProxy = 305,
     scTemporaryRedirect = 307,
-    scPermanentRedirect = 308, /**< RFC7538 */
+    scPermanentRedirect = 308,
     scBadRequest = 400,
     scUnauthorized = 401,
     scPaymentRequired = 402,
@@ -59,32 +60,33 @@ typedef enum {
     scUnsupportedMediaType = 415,
     scRequestedRangeNotSatisfied = 416,
     scExpectationFailed = 417,
-    scMisdirectedRequest = 421,     /**< RFC7540 section 9.1.2 */
-    scUnprocessableEntity = 422,    /**< RFC2518 section 10.3 / RFC4918 */
-    scLocked = 423,                 /**< RFC2518 section 10.4 / RFC4918 */
-    scFailedDependency = 424,       /**< RFC2518 section 10.5 / RFC4918 */
+    scMisdirectedRequest = 421,
+    scUnprocessableEntity = 422,
+    scLocked = 423,
+    scFailedDependency = 424,
+    scTooEarly = 425,
     scUpgradeRequired = 426,
-    scPreconditionRequired = 428,   /**< RFC6585 */
-    scTooManyRequests = 429,        /**< RFC6585 */
-    scRequestHeaderFieldsTooLarge = 431, /**< RFC6585 */
-    scUnavailableForLegalReasons = 451, /**< RFC7725 */
+    scPreconditionRequired = 428,
+    scTooManyRequests = 429,
+    scRequestHeaderFieldsTooLarge = 431,
+    scUnavailableForLegalReasons = 451,
     scInternalServerError = 500,
     scNotImplemented = 501,
     scBadGateway = 502,
     scServiceUnavailable = 503,
     scGatewayTimeout = 504,
     scHttpVersionNotSupported = 505,
-    scVariantAlsoNegotiates = 506,  /**< RFC2295 */
-    scInsufficientStorage = 507,    /**< RFC2518 section 10.6 / RFC4918 */
-    scLoopDetected = 508,           /**< RFC5842 */
-    scNotExtended = 510,            /**< RFC2774 */
-    scNetworkAuthenticationRequired = 511, /**< RFC6585 */
+    scVariantAlsoNegotiates = 506,
+    scInsufficientStorage = 507,
+    scLoopDetected = 508,
+    scNotExtended = 510,
+    scNetworkAuthenticationRequired = 511,
 
     // The 6xx codes below are for internal use only: Bad requests result
     // in scBadRequest; bad responses in scGatewayTimeout.
 
-    scInvalidHeader = 600,          /**< Squid header parsing error */
-    scHeaderTooLarge = 601         /* Header too large to process */
+    scInvalidHeader = 600, ///< Squid header parsing error
+    scHeaderTooLarge = 601 ///< Header too large to process
 } StatusCode;
 
 const char *StatusCodeString(const Http::StatusCode status);