summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-06-28 20:14:12 +0200
committerGitHub <noreply@github.com>2016-06-28 20:14:12 +0200
commitd8ee2c240920db62537ad0861f336e700f72d162 (patch)
treeeb6d7650baf88978944079c9a9e13fad1836b6a8 /lib
parenta5f234250ea971d6fc3269429aaf6ab3e1ead236 (diff)
parent1e31b273302578674c8d70ae2387646729e02264 (diff)
downloadNim-d8ee2c240920db62537ad0861f336e700f72d162.tar.gz
Merge pull request #4401 from zachaysan/add_http_status_codes
Add http status codes
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/httpcore.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/pure/httpcore.nim b/lib/pure/httpcore.nim
index c4d575833..562d16c19 100644
--- a/lib/pure/httpcore.nim
+++ b/lib/pure/httpcore.nim
@@ -24,6 +24,7 @@ type
     Http200 = "200 OK",
     Http201 = "201 Created",
     Http202 = "202 Accepted",
+    Http203 = "203 Non-Authoritative Information",
     Http204 = "204 No Content",
     Http205 = "205 Reset Content",
     Http206 = "206 Partial Content",
@@ -52,6 +53,13 @@ type
     Http416 = "416 Requested Range Not Satisfiable",
     Http417 = "417 Expectation Failed",
     Http418 = "418 I'm a teapot",
+    Http421 = "421 Misdirected Request",
+    Http422 = "422 Unprocessable Entity",
+    Http426 = "426 Upgrade Required",
+    Http428 = "428 Precondition Required",
+    Http429 = "429 Too Many Requests",
+    Http431 = "431 Request Header Fields Too Large",
+    Http451 = "451 Unavailable For Legal Reasons",
     Http500 = "500 Internal Server Error",
     Http501 = "501 Not Implemented",
     Http502 = "502 Bad Gateway",