From 280b589cd84b523804a98a2bbd0435fc55c94d4f Mon Sep 17 00:00:00 2001 From: Zach Aysan Date: Thu, 23 Jun 2016 14:23:57 -0400 Subject: Add missing - yet necessary - HTTP status codes. --- lib/pure/httpcore.nim | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib') diff --git a/lib/pure/httpcore.nim b/lib/pure/httpcore.nim index c4d575833..884958026 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", + Http421 = "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", -- cgit 1.4.1-2-gfad0 From 1e31b273302578674c8d70ae2387646729e02264 Mon Sep 17 00:00:00 2001 From: Zach Aysan Date: Thu, 23 Jun 2016 14:37:17 -0400 Subject: Fix typo --- lib/pure/httpcore.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/pure/httpcore.nim b/lib/pure/httpcore.nim index 884958026..562d16c19 100644 --- a/lib/pure/httpcore.nim +++ b/lib/pure/httpcore.nim @@ -54,7 +54,7 @@ type Http417 = "417 Expectation Failed", Http418 = "418 I'm a teapot", Http421 = "421 Misdirected Request", - Http421 = "422 Unprocessable Entity", + Http422 = "422 Unprocessable Entity", Http426 = "426 Upgrade Required", Http428 = "428 Precondition Required", Http429 = "429 Too Many Requests", -- cgit 1.4.1-2-gfad0