Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1095971 of 451 Unavailable For Legal Reasons

  • Revision slug: Web/HTTP/Status/451
  • Revision title: 451 Unavailable For Legal Reasons
  • Revision id: 1095971
  • Created:
  • Creator: fscholz
  • Is current revision? No
  • Comment

Revision Content

{{HTTPSidebar}}

The HTTP 451 Unavailable For Legal Reasons client error response code indicates that the user requests an illegal resource, such as a web page censored by a government.

Status

451 Unavailable For Legal Reasons

Example

This example response is taken from the IETF RFC (see below) and contains a refrence to {{interwiki("wikipedia", "Monty_Python's_Life_of_Brian", "Monty Python's Life of Brian")}}.

Note that the {{HTTPHeader("Link")}} header might also contain a rel="blocked-by" relation Identifying the entity that blocks access to a resource following receipt of a legal demand.

HTTP/1.1 451 Unavailable For Legal Reasons
Link: <https://spqr.example.org/legislatione>; rel="blocked-by"
Content-Type: text/html

<html>
<head><title>Unavailable For Legal Reasons</title></head>
<body>
<h1>Unavailable For Legal Reasons</h1>
<p>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.</p>
</body>
</html>

Specifications

Specification Title
{{RFC("7725", "451 Unavailable For Legal Reasons")}} An HTTP Status Code to Report Legal Obstacles

Browser compatibility

{{Compat}}

See also

  • {{interwiki("wikipedia", "HTTP_451", "Wikipedia: HTTP 451")}}
  • {{interwiki("wikipedia", "Fahrenheit_451", "Wikipedia: Fahrenheit 451")}} (which gave this status code its number)

Revision Source

<div>{{HTTPSidebar}}</div>

<p>The HTTP <code><strong>451</strong></code><strong><code> Unavailable For Legal Reasons</code></strong> client error response code indicates that the user requests an illegal resource, such as a web page censored by a government.</p>

<h2 id="Status">Status</h2>

<pre class="syntaxbox">
451 Unavailable For Legal Reasons</pre>

<h2 id="Example">Example</h2>

<p>This example response is taken from the IETF RFC (see below) and contains a refrence to {{interwiki("wikipedia", "Monty_Python's_Life_of_Brian", "Monty Python's Life of Brian")}}.</p>

<p>Note that the {{HTTPHeader("Link")}} header might also contain a <code>rel="blocked-by"</code> relation Identifying the entity that blocks access to a resource following receipt of a legal demand.</p>

<pre>
HTTP/1.1 451 Unavailable For Legal Reasons
Link: &lt;https://spqr.example.org/legislatione&gt;; rel="blocked-by"
Content-Type: text/html

&lt;html&gt;
&lt;head&gt;&lt;title&gt;Unavailable For Legal Reasons&lt;/title&gt;&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;Unavailable For Legal Reasons&lt;/h1&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Title</th>
  </tr>
  <tr>
   <td>{{RFC("7725", "451 Unavailable For Legal Reasons")}}</td>
   <td>An HTTP Status Code to Report Legal Obstacles</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p class="hidden">The compatibility table in this page is generated from structured data. If you’d like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data/README.md">https://github.com/mdn/browser-compat-data/README.md</a> and send us a pull request.</p>

<p>{{Compat}}</p>

<h2 id="See_also">See also</h2>

<ul>
 <li>{{interwiki("wikipedia", "HTTP_451", "Wikipedia: HTTP 451")}}</li>
 <li>{{interwiki("wikipedia", "Fahrenheit_451", "Wikipedia: Fahrenheit 451")}} (which gave this status code its number)</li>
</ul>
Revert to this revision