Skip to content

Commit 0790ea4

Browse files
authored
Merge pull request #6680 from mbeijen/rfc9110
Add rfc9110 HTTP status code names
2 parents 2a438c2 + e45b428 commit 0790ea4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/requests/status_codes.py

+4-4
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)