451 Unavailable For Legal Reasons

HTTP 451 Unavailable For Legal Reasons 客戶端錯誤響應狀態碼錶示使用者請求的資源由於法律原因不可用,例如因法律行動而不可用的網頁。

狀態

http
451 Unavailable For Legal Reasons

示例

此示例響應取自 IETF RFC(見下文),包含對 Monty Python 的《萬世巨星》的引用。

注意: Link 頭部也可能包含 rel="blocked-by" 關係,用於標識實施阻止的實體,而不是任何其他強制執行的實體。

任何試圖識別最終導致資源不可用的實體的行為都應放在響應正文中,而不是放在 rel="blocked-by" 連結中。這包括因法律要求導致內容刪除的人員或組織的名稱。

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>

規範

規範
報告法律障礙的 HTTP 狀態碼
# n-451-unavailable-for-legal-reasons

另見