From 43b82ab8e7713cb7163e32e1961c274792e60794 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 30 Jun 2026 16:33:13 +0900 Subject: [PATCH 1/4] Add HTTP 308. --- src/sphinxcontrib/httpdomain/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sphinxcontrib/httpdomain/__init__.py b/src/sphinxcontrib/httpdomain/__init__.py index 48bb580..7d3b8af 100644 --- a/src/sphinxcontrib/httpdomain/__init__.py +++ b/src/sphinxcontrib/httpdomain/__init__.py @@ -207,6 +207,7 @@ def __init__(self, name, type): 304: 'Not Modified', 305: 'Use Proxy', 307: 'Temporary Redirect', + 308: 'Permanent Redirect', 400: 'Bad Request', 401: 'Unauthorized', 402: 'Payment Required', # unused From e557734e5db1d3bb57f5b38de36091711f262e68 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 30 Jun 2026 16:34:14 +0900 Subject: [PATCH 2/4] Add HTTP 425. --- src/sphinxcontrib/httpdomain/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sphinxcontrib/httpdomain/__init__.py b/src/sphinxcontrib/httpdomain/__init__.py index 7d3b8af..bf00039 100644 --- a/src/sphinxcontrib/httpdomain/__init__.py +++ b/src/sphinxcontrib/httpdomain/__init__.py @@ -230,6 +230,7 @@ def __init__(self, name, type): 422: 'Unprocessable Entity', 423: 'Locked', 424: 'Failed Dependency', + 425: 'Too Early', # RFC 8470 426: 'Upgrade Required', 429: 'Too Many Requests', 449: 'Retry With', # proprietary MS extension From fad655056cc978a1a3476d612a0bf254eb32580f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 30 Jun 2026 16:37:27 +0900 Subject: [PATCH 3/4] Fix 414 text. --- src/sphinxcontrib/httpdomain/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sphinxcontrib/httpdomain/__init__.py b/src/sphinxcontrib/httpdomain/__init__.py index bf00039..c24c4b9 100644 --- a/src/sphinxcontrib/httpdomain/__init__.py +++ b/src/sphinxcontrib/httpdomain/__init__.py @@ -222,7 +222,7 @@ def __init__(self, name, type): 411: 'Length Required', 412: 'Precondition Failed', 413: 'Request Entity Too Large', - 414: 'Request URI Too Long', + 414: 'URI Too Long', 415: 'Unsupported Media Type', 416: 'Requested Range Not Satisfiable', 417: 'Expectation Failed', From 822ffd43799160fe7cef065e4b7d2eca0385daf5 Mon Sep 17 00:00:00 2001 From: Steve Piercy Date: Wed, 19 Aug 2026 22:37:17 -0700 Subject: [PATCH 4/4] Update CHANGELOG with new HTTP status codes Added and corrected HTTP status codes and messages 308, 414, and 425. --- CHANGELOG.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 581a048..4b31d74 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -31,6 +31,7 @@ Minor changes - Bump requests from 2.32.5 to 2.33.0 :pull:`106` - Bump tornado from 6.5.4 to 6.5.5 :pull:`105` - Add QUERY method and Accept-Query header [:pull:`114` by @rnewson] +- Added and corrected HTTP status codes and messages 308, 414, and 425. [:pull:`114` by @apteryks] Version 2.0.0