From ddf77f6f075b90002dccd44c961964d0128e0c7c Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Mon, 9 Nov 2015 18:41:25 +0000 Subject: [PATCH 1/3] Adds proposed status code 451 Unavailable For Legal Reasons --- contents/codes/451.md | 51 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 contents/codes/451.md diff --git a/contents/codes/451.md b/contents/codes/451.md new file mode 100644 index 0000000..dc95c72 --- /dev/null +++ b/contents/codes/451.md @@ -0,0 +1,51 @@ +--- +set: 4 +code: 451 +title: Unavailable For Legal Reasons +proposal: true +--- + +The server is denying access to the resource as a consequence of a legal demand. + +The server in question might not be an origin server. This type of legal demand +typically most directly affects the operations of ISPs and search engines. + +Responses using this status code SHOULD include an explanation, in the response +body, of the details of the legal demand: the party making it, the applicable +legislation or regulation, and what classes of person and resource it applies +to. For example: + +``` +HTTP/1.1 451 Unavailable For Legal Reasons +Link: ; rel="blocked-by" +Content-Type: text/html + + + Unavailable For Legal Reasons + +

Unavailable For Legal Reasons

+

This request may not be serviced in the Roman Province + of Judea due to the Lex Julia Majestatis, which disallows + access to resources hosted on servers deemed to be + operated by the People's Front of Judea.

+ + +``` + +The use of the 451 status code implies neither the existence nor non- +existence of the resource named in the request. That is to say, it is possible +that if the legal demands were removed, a request for the resource still might +not succeed. + +Note that in many cases clients can still access the denied resource by using +technical countermeasures such as a VPN or the Tor network. + +A 451 response is cacheable by default; i.e., unless otherwise indicated by the +method definition or explicit cache controls; see [RFC7234][2]. + +--- + +* Source: [draft-ietf-httpbis-legally-restricted-status][1] + +[1]: +[2]: \ No newline at end of file From 084b3322fe8c36a0770b932acd4119ac648d1581 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Mon, 9 Nov 2015 18:48:29 +0000 Subject: [PATCH 2/3] Scrolls code examples instead of word-wrapping them --- contents/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contents/style.scss b/contents/style.scss index 98bc3a5..21a1157 100644 --- a/contents/style.scss +++ b/contents/style.scss @@ -49,7 +49,7 @@ p { code { background-color: #fff; - word-wrap: break-word; + overflow: scroll; } .hero { From 0bc8dd501b22fe99d658c59c0d736dd0eb49b8c7 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Mon, 9 Nov 2015 18:49:37 +0000 Subject: [PATCH 3/3] Fixes indentation of example response HTML --- contents/codes/451.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/contents/codes/451.md b/contents/codes/451.md index dc95c72..7d5bfce 100644 --- a/contents/codes/451.md +++ b/contents/codes/451.md @@ -21,14 +21,16 @@ Link: ; rel="blocked-by" Content-Type: text/html - Unavailable For Legal Reasons - -

Unavailable For Legal Reasons

-

This request may not be serviced in the Roman Province - of Judea due to the Lex Julia Majestatis, which disallows - access to resources hosted on servers deemed to be - operated by the People's Front of Judea.

- + + Unavailable For Legal Reasons + + +

Unavailable For Legal Reasons

+

This request may not be serviced in the Roman Province + of Judea due to the Lex Julia Majestatis, which disallows + access to resources hosted on servers deemed to be + operated by the People's Front of Judea.

+ ```