--- title: 451 Unavailable For Legal Reasons slug: Web/HTTP/Status/451 translation_of: Web/HTTP/Status/451 ---
{{HTTPSidebar}}
HTTP 451 Unavailable For Legal Reasons
用戶端錯誤回應碼表明用戶請求的資源,出於法律原因而無法使用,例如遭受法律訴訟的網頁。
451 Unavailable For Legal Reasons
此示例擷取自 IETF RFC(參見以下章節)、包含了{{interwiki("wikipedia", "萬世魔星")}}的引用。
註:{{HTTPHeader("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).
{{Compat("http.status.451")}}