aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-03-05 13:58:55 +0100
committerLoïc Hoguin <[email protected]>2018-03-05 13:58:55 +0100
commitfa0357ff752e1ce70191ceb6332e5d58b9f1f18e (patch)
tree0024db9ec7d880e33270599cdbe2820dc6cd4e02
parent1786151ebfdfc89201fd1768c20326af129474cb (diff)
downloadcowlib-fa0357ff752e1ce70191ceb6332e5d58b9f1f18e.tar.gz
cowlib-fa0357ff752e1ce70191ceb6332e5d58b9f1f18e.tar.bz2
cowlib-fa0357ff752e1ce70191ceb6332e5d58b9f1f18e.zip
Add the 308 Permanent Redirect status code
-rw-r--r--src/cow_http.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cow_http.erl b/src/cow_http.erl
index 52caa19..e79896b 100644
--- a/src/cow_http.erl
+++ b/src/cow_http.erl
@@ -298,6 +298,7 @@ status(304) -> <<"304 Not Modified">>;
status(305) -> <<"305 Use Proxy">>;
status(306) -> <<"306 Switch Proxy">>;
status(307) -> <<"307 Temporary Redirect">>;
+status(308) -> <<"308 Permanent Redirect">>;
status(400) -> <<"400 Bad Request">>;
status(401) -> <<"401 Unauthorized">>;
status(402) -> <<"402 Payment Required">>;