Skip to content

Commit ebcd931

Browse files
RoySegalltomchristie
authored andcommitted
Adding I'm a teapot error code (#7081)
1 parent 90eaf51 commit ebcd931

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rest_framework/status.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def is_server_error(code):
6666
HTTP_415_UNSUPPORTED_MEDIA_TYPE = 415
6767
HTTP_416_REQUESTED_RANGE_NOT_SATISFIABLE = 416
6868
HTTP_417_EXPECTATION_FAILED = 417
69+
HTTP_418_IM_A_TEAPOT = 418
6970
HTTP_422_UNPROCESSABLE_ENTITY = 422
7071
HTTP_423_LOCKED = 423
7172
HTTP_424_FAILED_DEPENDENCY = 424

0 commit comments

Comments
 (0)