首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

451 Unavailable For Legal Reasons

HTTP 451 Unavailable For Legal Reasons客户端错误响应代码指示用户请求由于法律原因而不可用的资源,例如已发出法律行为的网页。

状态

代码语言:javascript
复制
451 Unavailable For Legal Reasons

示例

此示例响应取自 IETF RFC(请参阅下文),并包含对 Monty Python 的 Brian 生活的引用。

请注意,Link标题还可能包含一个rel="blocked-by"关系,用于标识实际实施封锁的实体,而不是任何其他实体实施封锁的实体。

任何试图识别最终对资源不可用的实体负责的企图,如提出合法请求而导致内容被移除的个人或组织的名称都属于响应主体,而不在rel="blocked-by"链接中。

代码语言:javascript
复制
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>

规范

规范

标题

RFC 7725:451法律原因不可用

报告法律障碍的HTTP状态代码

浏览器兼容性

Feature

Chrome

Edge

Firefox

Internet Explorer

Opera

Safari

Basic Support

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

Feature

Android

Chrome for Android

Edge mobile

Firefox for Android

IE mobile

Opera Android

iOS Safari

Basic Support

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com