summaryrefslogtreecommitdiffstats
path: root/Doc/library/http.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2019-08-23 17:19:15 (GMT)
committerGitHub <noreply@github.com>2019-08-23 17:19:15 (GMT)
commit8f080b09953a2d862de5c74edf414a54ea3dbea5 (patch)
tree3b6b0ac4d6ae181dc5e1150fba3c9e3021ca3e91 /Doc/library/http.rst
parent120b707a6d43452e067daa55a8fdca69f9424abc (diff)
downloadcpython-8f080b09953a2d862de5c74edf414a54ea3dbea5.zip
cpython-8f080b09953a2d862de5c74edf414a54ea3dbea5.tar.gz
cpython-8f080b09953a2d862de5c74edf414a54ea3dbea5.tar.bz2
bpo-26589: Add http status code 451 (GH-15413)
Diffstat (limited to 'Doc/library/http.rst')
-rw-r--r--Doc/library/http.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/http.rst b/Doc/library/http.rst
index 88d62cc..8df1457 100644
--- a/Doc/library/http.rst
+++ b/Doc/library/http.rst
@@ -106,6 +106,7 @@ Code Enum Name Details
``428`` ``PRECONDITION_REQUIRED`` Additional HTTP Status Codes :rfc:`6585`
``429`` ``TOO_MANY_REQUESTS`` Additional HTTP Status Codes :rfc:`6585`
``431`` ``REQUEST_HEADER_FIELDS_TOO_LARGE`` Additional HTTP Status Codes :rfc:`6585`
+``451`` ``UNAVAILABLE_FOR_LEGAL_REASONS`` An HTTP Status Code to Report Legal Obstacles :rfc:`7725`
``500`` ``INTERNAL_SERVER_ERROR`` HTTP/1.1 :rfc:`7231`, Section 6.6.1
``501`` ``NOT_IMPLEMENTED`` HTTP/1.1 :rfc:`7231`, Section 6.6.2
``502`` ``BAD_GATEWAY`` HTTP/1.1 :rfc:`7231`, Section 6.6.3
@@ -126,3 +127,6 @@ equal to the constant name (i.e. ``http.HTTPStatus.OK`` is also available as
.. versionchanged:: 3.7
Added ``421 MISDIRECTED_REQUEST`` status code.
+
+.. versionadded:: 3.8
+ Added ``451 UNAVAILABLE_FOR_LEGAL_REASONS`` status code.