diff options
author | Anthony Ramine <[email protected]> | 2012-05-06 13:11:21 +0200 |
---|---|---|
committer | Anthony Ramine <[email protected]> | 2012-05-06 13:12:58 +0200 |
commit | de89550c23f50a04e6ac897b14c57f9c7adf0121 (patch) | |
tree | 14dd2e7e5c88b4451da0c422ae0608a412ac16a4 /src | |
parent | 90bae59307394a0cb2642db504da53f234cf6b42 (diff) | |
download | cowboy-de89550c23f50a04e6ac897b14c57f9c7adf0121.tar.gz cowboy-de89550c23f50a04e6ac897b14c57f9c7adf0121.tar.bz2 cowboy-de89550c23f50a04e6ac897b14c57f9c7adf0121.zip |
Add new HTTP status codes from RFC 6585
See http://tools.ietf.org/html/rfc6585 for further details.
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_http_req.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl index e8fd43a..411d059 100644 --- a/src/cowboy_http_req.erl +++ b/src/cowboy_http_req.erl @@ -918,6 +918,9 @@ status(423) -> <<"423 Locked">>; status(424) -> <<"424 Failed Dependency">>; status(425) -> <<"425 Unordered Collection">>; status(426) -> <<"426 Upgrade Required">>; +status(428) -> <<"428 Precondition Required">>; +status(429) -> <<"429 Too Many Requests">>; +status(431) -> <<"431 Request Header Fields Too Large">>; status(500) -> <<"500 Internal Server Error">>; status(501) -> <<"501 Not Implemented">>; status(502) -> <<"502 Bad Gateway">>; @@ -927,6 +930,7 @@ status(505) -> <<"505 HTTP Version Not Supported">>; status(506) -> <<"506 Variant Also Negotiates">>; status(507) -> <<"507 Insufficient Storage">>; status(510) -> <<"510 Not Extended">>; +status(511) -> <<"511 Network Authentication Required">>; status(B) when is_binary(B) -> B. -spec header_to_binary(cowboy_http:header()) -> binary(). |