From cf362f2e85736d8724523a7925b931d37479f703 Mon Sep 17 00:00:00 2001 From: Alexander <43606916+alfrol@users.noreply.github.com> Date: Wed, 23 Oct 2024 11:41:44 +0300 Subject: [PATCH] Add 422 Unprocessable Content to status codes (#7270) --- mitmproxy/net/http/status_codes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mitmproxy/net/http/status_codes.py b/mitmproxy/net/http/status_codes.py index 66e7d49ab..fe9948569 100644 --- a/mitmproxy/net/http/status_codes.py +++ b/mitmproxy/net/http/status_codes.py @@ -39,6 +39,7 @@ UNSUPPORTED_MEDIA_TYPE = 415 REQUESTED_RANGE_NOT_SATISFIABLE = 416 EXPECTATION_FAILED = 417 IM_A_TEAPOT = 418 +UNPROCESSABLE_CONTENT = 422 NO_RESPONSE = 444 CLIENT_CLOSED_REQUEST = 499 @@ -95,6 +96,7 @@ RESPONSES = { REQUESTED_RANGE_NOT_SATISFIABLE: "Requested Range not satisfiable", EXPECTATION_FAILED: "Expectation Failed", IM_A_TEAPOT: "I'm a teapot", + UNPROCESSABLE_CONTENT: "Unprocessable Content", NO_RESPONSE: "No Response", CLIENT_CLOSED_REQUEST: "Client Closed Request", # 500