summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett <brett@nextglass.co>2014-05-28 15:20:16 -0400
committerBrett <brett@nextglass.co>2014-05-28 15:20:16 -0400
commitd7c8345efd4ab2a2aa0302f9829dc73679e2af2f (patch)
treea2cb901994948b13209d7b5a6049246dba67ff69
parentaee23e702ead4a269a5484b9e9fec928a7de0c83 (diff)
downloadbottle-d7c8345efd4ab2a2aa0302f9829dc73679e2af2f.tar.gz
add 422 response code string
-rw-r--r--bottle.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bottle.py b/bottle.py
index 0254af5..94e9caf 100644
--- a/bottle.py
+++ b/bottle.py
@@ -3645,6 +3645,7 @@ NORUN = False # If set, run() does nothing. Used by load_app()
#: A dict to map HTTP status codes (e.g. 404) to phrases (e.g. 'Not Found')
HTTP_CODES = httplib.responses
HTTP_CODES[418] = "I'm a teapot" # RFC 2324
+HTTP_CODES[422] = "Unprocessable Entity" # RFC 4918
HTTP_CODES[428] = "Precondition Required"
HTTP_CODES[429] = "Too Many Requests"
HTTP_CODES[431] = "Request Header Fields Too Large"