aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicholas Lundgaard <[email protected]>2017-02-21 11:46:58 -0600
committerLoïc Hoguin <[email protected]>2017-04-18 18:46:04 +0200
commite4da2077723a26301de516c8da9b0b330545b5af (patch)
treed5cf6518398118c80b289c2077388b8b3a151587 /src
parent07cde7c6def6eeed0174b270229e7d5175673d87 (diff)
downloadcowlib-e4da2077723a26301de516c8da9b0b330545b5af.tar.gz
cowlib-e4da2077723a26301de516c8da9b0b330545b5af.tar.bz2
cowlib-e4da2077723a26301de516c8da9b0b330545b5af.zip
Add support for HTTP 451 (RFC 7725)
See [rfc7725 section 3](https://tools.ietf.org/html/rfc7725#section-3).
Diffstat (limited to 'src')
-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 07b4b36..de079ea 100644
--- a/src/cow_http.erl
+++ b/src/cow_http.erl
@@ -321,6 +321,7 @@ 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(451) -> <<"451 Unavailable For Legal Reasons">>;
status(500) -> <<"500 Internal Server Error">>;
status(501) -> <<"501 Not Implemented">>;
status(502) -> <<"502 Bad Gateway">>;