Skip to content

Commit 5bea22f

Browse files
authored
Added http 102, 103, 421, and 425 status codes (#8350)
1 parent c26ec5a commit 5bea22f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rest_framework/status.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ def is_server_error(code):
2929

3030
HTTP_100_CONTINUE = 100
3131
HTTP_101_SWITCHING_PROTOCOLS = 101
32+
HTTP_102_PROCESSING = 102
33+
HTTP_103_EARLY_HINTS = 103
3234
HTTP_200_OK = 200
3335
HTTP_201_CREATED = 201
3436
HTTP_202_ACCEPTED = 202
@@ -67,9 +69,11 @@ def is_server_error(code):
6769
HTTP_416_REQUESTED_RANGE_NOT_SATISFIABLE = 416
6870
HTTP_417_EXPECTATION_FAILED = 417
6971
HTTP_418_IM_A_TEAPOT = 418
72+
HTTP_421_MISDIRECTED_REQUEST = 421
7073
HTTP_422_UNPROCESSABLE_ENTITY = 422
7174
HTTP_423_LOCKED = 423
7275
HTTP_424_FAILED_DEPENDENCY = 424
76+
HTTP_425_TOO_EARLY = 425
7377
HTTP_426_UPGRADE_REQUIRED = 426
7478
HTTP_428_PRECONDITION_REQUIRED = 428
7579
HTTP_429_TOO_MANY_REQUESTS = 429

0 commit comments

Comments
 (0)