Skip to content

Commit

Permalink
Merge pull request #6680 from mbeijen/rfc9110
Browse files Browse the repository at this point in the history
Add rfc9110 HTTP status code names
  • Loading branch information
nateprewitt authored Apr 11, 2024
2 parents 2a438c2 + e45b428 commit 0790ea4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/requests/status_codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# Informational.
100: ("continue",),
101: ("switching_protocols",),
102: ("processing",),
102: ("processing", "early-hints"),
103: ("checkpoint",),
122: ("uri_too_long", "request_uri_too_long"),
200: ("ok", "okay", "all_ok", "all_okay", "all_good", "\\o/", "✓"),
Expand Down Expand Up @@ -65,8 +65,8 @@
410: ("gone",),
411: ("length_required",),
412: ("precondition_failed", "precondition"),
413: ("request_entity_too_large",),
414: ("request_uri_too_large",),
413: ("request_entity_too_large", "content_too_large"),
414: ("request_uri_too_large", "uri_too_long"),
415: ("unsupported_media_type", "unsupported_media", "media_type"),
416: (
"requested_range_not_satisfiable",
Expand All @@ -76,7 +76,7 @@
417: ("expectation_failed",),
418: ("im_a_teapot", "teapot", "i_am_a_teapot"),
421: ("misdirected_request",),
422: ("unprocessable_entity", "unprocessable"),
422: ("unprocessable_entity", "unprocessable", "unprocessable_content"),
423: ("locked",),
424: ("failed_dependency", "dependency"),
425: ("unordered_collection", "unordered", "too_early"),
Expand Down

0 comments on commit 0790ea4

Please sign in to comment.