38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
From 20c02cdb77bd6c9827625a68c1a1af339c50b819 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Lu=C3=ADs=20Soares?= <lsoares@gmail.com>
|
|
Date: Thu, 8 Sep 2022 10:12:46 +0100
|
|
Subject: [PATCH] add support for 421: "Misdirected Request"
|
|
|
|
---
|
|
httpretty/http.py | 1 +
|
|
tests/unit/test_httpretty.py | 1 +
|
|
2 files changed, 2 insertions(+)
|
|
|
|
diff --git a/httpretty/http.py b/httpretty/http.py
|
|
index 87ceca9..0f75935 100644
|
|
--- a/httpretty/http.py
|
|
+++ b/httpretty/http.py
|
|
@@ -73,6 +73,7 @@ STATUSES = {
|
|
417: "Expectation Failed",
|
|
418: "I'm a teapot",
|
|
420: "Enhance Your Calm",
|
|
+ 421: "Misdirected Request",
|
|
422: "Unprocessable Entity",
|
|
423: "Locked",
|
|
424: "Failed Dependency",
|
|
diff --git a/tests/unit/test_httpretty.py b/tests/unit/test_httpretty.py
|
|
index 017b290..89b2abf 100644
|
|
--- a/tests/unit/test_httpretty.py
|
|
+++ b/tests/unit/test_httpretty.py
|
|
@@ -117,6 +117,7 @@ def test_status_codes():
|
|
417: "Expectation Failed",
|
|
418: "I'm a teapot",
|
|
420: "Enhance Your Calm",
|
|
+ 421: "Misdirected Request",
|
|
422: "Unprocessable Entity",
|
|
423: "Locked",
|
|
424: "Failed Dependency",
|
|
--
|
|
2.39.0.windows.2
|
|
|