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 diff --git a/src/sphinxcontrib/httpdomain/__init__.py b/src/sphinxcontrib/httpdomain/__init__.py index 5a81d34..db839d2 100644 --- a/src/sphinxcontrib/httpdomain/__init__.py +++ b/src/sphinxcontrib/httpdomain/__init__.py @@ -209,6 +209,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 @@ -223,7 +224,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', @@ -231,6 +232,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