summaryrefslogtreecommitdiffstats
path: root/Doc/library/http.rst
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na92@gmail.com>2020-03-14 14:12:01 (GMT)
committerGitHub <noreply@github.com>2020-03-14 14:12:01 (GMT)
commitda52be47690da0d9f78d0dce9ee5c3e4dbef49e1 (patch)
tree12cd6fb0d3121d8c06645d231fa279c1f157768f /Doc/library/http.rst
parentb81f40f0adae3b1d1e57f9a89940ba827b9ede70 (diff)
downloadcpython-da52be47690da0d9f78d0dce9ee5c3e4dbef49e1.zip
cpython-da52be47690da0d9f78d0dce9ee5c3e4dbef49e1.tar.gz
cpython-da52be47690da0d9f78d0dce9ee5c3e4dbef49e1.tar.bz2
bpo-39509: Update HTTP status code to follow IANA (GH-18294)
Add status codes 103 EARLY_HINTS and 425 TOO_EARLY.
Diffstat (limited to 'Doc/library/http.rst')
-rw-r--r--Doc/library/http.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/http.rst b/Doc/library/http.rst
index 0e3441c..f120ada2 100644
--- a/Doc/library/http.rst
+++ b/Doc/library/http.rst
@@ -62,6 +62,7 @@ Code Enum Name Details
``100`` ``CONTINUE`` HTTP/1.1 :rfc:`7231`, Section 6.2.1
``101`` ``SWITCHING_PROTOCOLS`` HTTP/1.1 :rfc:`7231`, Section 6.2.2
``102`` ``PROCESSING`` WebDAV :rfc:`2518`, Section 10.1
+``103`` ``EARLY_HINTS`` An HTTP Status Code for Indicating Hints :rfc:`8297`
``200`` ``OK`` HTTP/1.1 :rfc:`7231`, Section 6.3.1
``201`` ``CREATED`` HTTP/1.1 :rfc:`7231`, Section 6.3.2
``202`` ``ACCEPTED`` HTTP/1.1 :rfc:`7231`, Section 6.3.3
@@ -102,6 +103,7 @@ Code Enum Name Details
``422`` ``UNPROCESSABLE_ENTITY`` WebDAV :rfc:`4918`, Section 11.2
``423`` ``LOCKED`` WebDAV :rfc:`4918`, Section 11.3
``424`` ``FAILED_DEPENDENCY`` WebDAV :rfc:`4918`, Section 11.4
+``425`` ``TOO_EARLY`` Using Early Data in HTTP :rfc:`8470`
``426`` ``UPGRADE_REQUIRED`` HTTP/1.1 :rfc:`7231`, Section 6.5.15
``428`` ``PRECONDITION_REQUIRED`` Additional HTTP Status Codes :rfc:`6585`
``429`` ``TOO_MANY_REQUESTS`` Additional HTTP Status Codes :rfc:`6585`
@@ -130,3 +132,6 @@ equal to the constant name (i.e. ``http.HTTPStatus.OK`` is also available as
.. versionadded:: 3.8
Added ``451 UNAVAILABLE_FOR_LEGAL_REASONS`` status code.
+
+.. versionadded:: 3.9
+ Added ``103 EARLY_HINTS`` and ``425 TOO_EARLY`` status codes.