aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-09-06 11:12:25 +0200
committerLoïc Hoguin <[email protected]>2019-09-06 11:12:25 +0200
commitc3fc4c663f211b0c16555112a939666f479e440b (patch)
tree1d44ef863a73eb5f90580718dccad6444bd60d10
parent533f3a8571f75394567198df8d599d4d88b159b0 (diff)
downloadcowlib-c3fc4c663f211b0c16555112a939666f479e440b.tar.gz
cowlib-c3fc4c663f211b0c16555112a939666f479e440b.tar.bz2
cowlib-c3fc4c663f211b0c16555112a939666f479e440b.zip
Add status codes 208 and 508
-rw-r--r--src/cow_http.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cow_http.erl b/src/cow_http.erl
index 5701b02..bfaace3 100644
--- a/src/cow_http.erl
+++ b/src/cow_http.erl
@@ -372,6 +372,7 @@ status(204) -> <<"204 No Content">>;
status(205) -> <<"205 Reset Content">>;
status(206) -> <<"206 Partial Content">>;
status(207) -> <<"207 Multi-Status">>;
+status(208) -> <<"208 Already Reported">>;
status(226) -> <<"226 IM Used">>;
status(300) -> <<"300 Multiple Choices">>;
status(301) -> <<"301 Moved Permanently">>;
@@ -419,6 +420,7 @@ status(504) -> <<"504 Gateway Timeout">>;
status(505) -> <<"505 HTTP Version Not Supported">>;
status(506) -> <<"506 Variant Also Negotiates">>;
status(507) -> <<"507 Insufficient Storage">>;
+status(508) -> <<"508 Loop Detected">>;
status(510) -> <<"510 Not Extended">>;
status(511) -> <<"511 Network Authentication Required">>;
status(B) when is_binary(B) -> B.