From 7074f51977fda70dac58acbde8dee8b72b428ae5 Mon Sep 17 00:00:00 2001 From: Igor Nehoroshev Date: Thu, 10 Oct 2019 12:07:30 +0300 Subject: [PATCH] Add 425 Too Early status code (#660) --- starlette/status.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/starlette/status.py b/starlette/status.py index 47c204b9..0efaab74 100644 --- a/starlette/status.py +++ b/starlette/status.py @@ -3,6 +3,7 @@ HTTP codes See RFC 2616 - https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html And RFC 6585 - https://tools.ietf.org/html/rfc6585 And RFC 4918 - https://tools.ietf.org/html/rfc4918 +And RFC 8470 - https://tools.ietf.org/html/rfc8470 """ HTTP_100_CONTINUE = 100 HTTP_101_SWITCHING_PROTOCOLS = 101 @@ -43,6 +44,7 @@ HTTP_417_EXPECTATION_FAILED = 417 HTTP_422_UNPROCESSABLE_ENTITY = 422 HTTP_423_LOCKED = 423 HTTP_424_FAILED_DEPENDENCY = 424 +HTTP_425_TOO_EARLY = 425 HTTP_428_PRECONDITION_REQUIRED = 428 HTTP_429_TOO_MANY_REQUESTS = 429 HTTP_431_REQUEST_HEADER_FIELDS_TOO_LARGE = 431