?
This document uses PHP Chinese website manual Release
HTTP 451 Unavailable For Legal Reasons
客戶端錯誤響應(yīng)代碼指示用戶請求由于法律原因而不可用的資源,例如已發(fā)出法律行為的網(wǎng)頁。
451 Unavailable For Legal Reasons
此示例響應(yīng)取自 IETF RFC(請參閱下文),并包含對 Monty Python 的 Brian 生活的引用。
請注意,Link
標(biāo)題還可能包含一個rel="blocked-by"
關(guān)系,用于標(biāo)識實際實施封鎖的實體,而不是任何其他實體實施封鎖的實體。
任何試圖識別最終對資源不可用的實體負責(zé)的企圖,如提出合法請求而導(dǎo)致內(nèi)容被移除的個人或組織的名稱都屬于響應(yīng)主體,而不在rel="blocked-by"
鏈接中。
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 Provinceof 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>
規(guī)范 | 標(biāo)題 |
---|---|
RFC 7725:451法律原因不可用 | 報告法律障礙的HTTP狀態(tài)代碼 |
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) |