MDN Web Docs

Status

http

451 Unavailable For Legal Reasons

Examples

Response with Link header

This example response is taken from the IETF RFC (see below) and contains a reference to Monty Python's Life of Brian.

Note: The Link header might also contain a rel="blocked-by" relation identifying the entity implementing the blockage, not any other entity mandating it.

Any attempt to identify the entity ultimately responsible for the resource being unavailable belongs in the response body, not in the rel="blocked-by" link. This includes the name of the person or organization that made a legal demand resulting in the content's removal.

http

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
An HTTP Status Code to Report Legal Obstacles
# n-451-unavailable-for-legal-reasons

See also

Help improve MDN

Yes No

Learn how to contribute

This page was last modified on by MDN contributors.

Read the original on developer.mozilla.org ↗