diff options
author | Ross <rrhodes@users.noreply.github.com> | 2020-03-15 12:24:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-15 12:24:23 (GMT) |
commit | 61ac612e78e4f2625977406fb6f366e0a644673a (patch) | |
tree | 83a14943941d3d3e1b9394045655c656947e523a /Lib/http | |
parent | 90235810ec28ca954bbf4b61a5ae5df7a00db409 (diff) | |
download | cpython-61ac612e78e4f2625977406fb6f366e0a644673a.zip cpython-61ac612e78e4f2625977406fb6f366e0a644673a.tar.gz cpython-61ac612e78e4f2625977406fb6f366e0a644673a.tar.bz2 |
bpo-39507: Add HTTP status 418 "I'm a Teapot" (GH-18291)
Diffstat (limited to 'Lib/http')
-rw-r--r-- | Lib/http/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/http/__init__.py b/Lib/http/__init__.py index c8498be..37be765 100644 --- a/Lib/http/__init__.py +++ b/Lib/http/__init__.py @@ -17,6 +17,7 @@ class HTTPStatus(IntEnum): * RFC 2774: An HTTP Extension Framework * RFC 7725: An HTTP Status Code to Report Legal Obstacles * RFC 7540: Hypertext Transfer Protocol Version 2 (HTTP/2) + * RFC 2324: Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0) * RFC 8297: An HTTP Status Code for Indicating Hints * RFC 8470: Using Early Data in HTTP """ @@ -103,6 +104,8 @@ class HTTPStatus(IntEnum): 'Cannot satisfy request range') EXPECTATION_FAILED = (417, 'Expectation Failed', 'Expect condition could not be satisfied') + IM_A_TEAPOT = (418, 'I\'m a Teapot', + 'Server refuses to brew coffee because it is a teapot.') MISDIRECTED_REQUEST = (421, 'Misdirected Request', 'Server is not able to produce a response') UNPROCESSABLE_ENTITY = 422, 'Unprocessable Entity' |