Permalink
Browse files

Add additional http status codes

According to [RFC6585](http://www.ietf.org/rfc/rfc6585.txt)
  • Loading branch information...
1 parent 3542f58 commit dc942d324864632e447fda9f941058c137306df1 @MattesGroeger MattesGroeger committed Mar 11, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/elli_http.erl
View
4 src/elli_http.erl
@@ -666,6 +666,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">>;
@@ -675,6 +678,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.

0 comments on commit dc942d3

Please sign in to comment.