Skip to content

Commit

Permalink
Added http 102, 103, 421, and 425 status codes (#8350)
Browse files Browse the repository at this point in the history
  • Loading branch information
parthokr authored Feb 3, 2022
1 parent c26ec5a commit 5bea22f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rest_framework/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def is_server_error(code):

HTTP_100_CONTINUE = 100
HTTP_101_SWITCHING_PROTOCOLS = 101
HTTP_102_PROCESSING = 102
HTTP_103_EARLY_HINTS = 103
HTTP_200_OK = 200
HTTP_201_CREATED = 201
HTTP_202_ACCEPTED = 202
Expand Down Expand Up @@ -67,9 +69,11 @@ def is_server_error(code):
HTTP_416_REQUESTED_RANGE_NOT_SATISFIABLE = 416
HTTP_417_EXPECTATION_FAILED = 417
HTTP_418_IM_A_TEAPOT = 418
HTTP_421_MISDIRECTED_REQUEST = 421
HTTP_422_UNPROCESSABLE_ENTITY = 422
HTTP_423_LOCKED = 423
HTTP_424_FAILED_DEPENDENCY = 424
HTTP_425_TOO_EARLY = 425
HTTP_426_UPGRADE_REQUIRED = 426
HTTP_428_PRECONDITION_REQUIRED = 428
HTTP_429_TOO_MANY_REQUESTS = 429
Expand Down

0 comments on commit 5bea22f

Please sign in to comment.