From ebcd93163a5d0663d16a16d4691df1bbe965d42f Mon Sep 17 00:00:00 2001 From: Roy Segall Date: Tue, 10 Dec 2019 11:18:35 +0200 Subject: [PATCH] Adding I'm a teapot error code (#7081) --- rest_framework/status.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rest_framework/status.py b/rest_framework/status.py index 06d090733..2561d7689 100644 --- a/rest_framework/status.py +++ b/rest_framework/status.py @@ -66,6 +66,7 @@ HTTP_414_REQUEST_URI_TOO_LONG = 414 HTTP_415_UNSUPPORTED_MEDIA_TYPE = 415 HTTP_416_REQUESTED_RANGE_NOT_SATISFIABLE = 416 HTTP_417_EXPECTATION_FAILED = 417 +HTTP_418_IM_A_TEAPOT = 418 HTTP_422_UNPROCESSABLE_ENTITY = 422 HTTP_423_LOCKED = 423 HTTP_424_FAILED_DEPENDENCY = 424