HTTPretty
HTTPretty copied to clipboard
add support for 421: "Misdirected Request"
If you currently pass 421, shouldn't it fail internally with a KeyError here?
https://github.com/lsoares/HTTPretty/blob/master/httpretty/core.py#L1106
If I pass 421, I get requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) when using requests library.
more info
the current hack I used:
from httpretty.http import STATUSES
STATUSES[421] = "Misdirected Request"