HTTP 451 Unavailable For Legal Reasons 用戶端錯誤回應碼表明用戶請求的資源,出於法律原因而無法使用,例如遭受法律訴訟的網頁。

狀態

451 Unavailable For Legal Reasons

示例

此示例擷取自 IETF RFC(參見以下章節)、包含了萬世魔星的引用。

註:Link 標頭可能包含 rel="blocked-by" 以表明是誰封鎖該資源,而非來自其他強制力量。

需要為該資源無效的負責者,例如請求法律移除內容的人名或組織名,並不會放在 rel="blocked-by" link 裡面。

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 Unavailable For Legal Reasons An HTTP Status Code to Report Legal Obstacles

瀏覽器相容性

The information shown below has been pulled from MDN's GitHub (https://github.com/mdn/browser-compat-data).

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes Yes Yes Yes Yes Yes
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes Yes Yes Yes Yes Yes

參見

文件標籤與貢獻者

此頁面的貢獻者: iigmir
最近更新: iigmir,