451 Unavailable For Legal Reasons - HTTP 编辑
The HyperText Transfer Protocol (HTTP) 451 Unavailable For Legal Reasons
client error response code indicates that the user requested a resource that is not available due to legal reasons, such as a web page for which a legal action has been issued.
Status
451 Unavailable For Legal Reasons
Example
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 and implementing 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/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
BCD tables only load in the browser
The information shown below has been pulled from MDN's GitHub (https://github.com/mdn/browser-compat-data).
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
See also
- Wikipedia: HTTP 451
- Wikipedia: Fahrenheit 451 (which gave this status code its number)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论