diff options
author | Zach Aysan <zachaysan@gmail.com> | 2016-06-23 14:23:57 -0400 |
---|---|---|
committer | Zach Aysan <zachaysan@gmail.com> | 2016-06-23 14:23:57 -0400 |
commit | 280b589cd84b523804a98a2bbd0435fc55c94d4f (patch) | |
tree | 27becec508251171e0f0fe564abad3a59a9a8b94 /lib/pure | |
parent | 5f4e98bbc7fb8bdd6e60579b26c0001f33ce4f9c (diff) | |
download | Nim-280b589cd84b523804a98a2bbd0435fc55c94d4f.tar.gz |
Add missing - yet necessary - HTTP status codes.
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/httpcore.nim | 8 |
1 files changed, 8 insertions, 0 deletions
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", |