From e4da2077723a26301de516c8da9b0b330545b5af Mon Sep 17 00:00:00 2001 From: Nicholas Lundgaard Date: Tue, 21 Feb 2017 11:46:58 -0600 Subject: Add support for HTTP 451 (RFC 7725) See [rfc7725 section 3](https://tools.ietf.org/html/rfc7725#section-3). --- src/cow_http.erl | 1 + 1 file changed, 1 insertion(+) 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">>; -- cgit v1.2.3