Skip to content

Commit e45b428

Browse files
committed
Add rfc9110 HTTP status code names
RFC 9110 _HTTP Semantics_ obsoletes some earlier RFCs which defined HTTP 1.1. It adds some status codes that were previously only used for WebDAV to HTTP _proper_ after making the names somewhat more generic. See https://www.rfc-editor.org/rfc/rfc9110.html#name-changes-from-rfc-7231 This commit adds the http status code names from that RFC.
1 parent 2a438c2 commit e45b428

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/requests/status_codes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# Informational.
2525
100: ("continue",),
2626
101: ("switching_protocols",),
27-
102: ("processing",),
27+
102: ("processing", "early-hints"),
2828
103: ("checkpoint",),
2929
122: ("uri_too_long", "request_uri_too_long"),
3030
200: ("ok", "okay", "all_ok", "all_okay", "all_good", "\\o/", "✓"),
@@ -65,8 +65,8 @@
6565
410: ("gone",),
6666
411: ("length_required",),
6767
412: ("precondition_failed", "precondition"),
68-
413: ("request_entity_too_large",),
69-
414: ("request_uri_too_large",),
68+
413: ("request_entity_too_large", "content_too_large"),
69+
414: ("request_uri_too_large", "uri_too_long"),
7070
415: ("unsupported_media_type", "unsupported_media", "media_type"),
7171
416: (
7272
"requested_range_not_satisfiable",
@@ -76,7 +76,7 @@
7676
417: ("expectation_failed",),
7777
418: ("im_a_teapot", "teapot", "i_am_a_teapot"),
7878
421: ("misdirected_request",),
79-
422: ("unprocessable_entity", "unprocessable"),
79+
422: ("unprocessable_entity", "unprocessable", "unprocessable_content"),
8080
423: ("locked",),
8181
424: ("failed_dependency", "dependency"),
8282
425: ("unordered_collection", "unordered", "too_early"),

0 commit comments

Comments
 (0)