Skip to content

Commit a7e495f

Browse files
committed
Append 422 status to HTTP responses dict.
1 parent 478e2a3 commit a7e495f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

github2/request.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@
6060
"DigiCert_High_Assurance_EV_Root_CA.crt")
6161

6262

63+
# Common missing entries from the HTTP status code dict, basically anything
64+
# GitHub reports that isn't basic HTTP/1.1.
65+
responses[422] = 'Unprocessable Entity'
66+
67+
6368
def charset_from_headers(headers):
6469
"""Parse charset from headers
6570

0 commit comments

Comments
 (0)