aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/http/status/451/index.html
blob: ce4817643f2ad6eaa46e77732f22306e85b4b5e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
title: 451 Unavailable For Legal Reasons
slug: Web/HTTP/Status/451
translation_of: Web/HTTP/Status/451
---
<p>{{HTTPSidebar}}</p>

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

<h2 id="狀態">狀態</h2>

<pre class="syntaxbox">451 Unavailable For Legal Reasons</pre>

<h2 id="示例">示例</h2>

<p>此示例擷取自 IETF RFC(參見以下章節)、包含了{{interwiki("wikipedia", "萬世魔星")}}的引用。</p>

<p><strong>註:</strong>{{HTTPHeader("Link")}} 標頭可能包含 <code>rel="blocked-by"</code> 以表明是誰封鎖該資源,而非來自其他強制力量。</p>

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

<pre>HTTP/1.1 451 Unavailable For Legal Reasons
Link: &lt;https://spqr.example.org/legislatione&gt;; rel="blocked-by"
Content-Type: text/html</pre>

<pre>&lt;html&gt;
      &lt;head&gt;&lt;title&gt;Unavailable For Legal Reasons&lt;/title&gt;&lt;/head&gt;
      &lt;body&gt;
            &lt;h1&gt;Unavailable For Legal Reasons&lt;/h1&gt;
            &lt;p&gt;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.&lt;/p&gt;
     &lt;/body&gt;
&lt;/html&gt;</pre>

<h2 id="規範">規範</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">規範</th>
   <th scope="col">標題</th>
  </tr>
  <tr>
   <td>{{RFC("7725", "451 Unavailable For Legal Reasons")}}</td>
   <td>An HTTP Status Code to Report Legal Obstacles</td>
  </tr>
 </tbody>
</table>

<h2 id="瀏覽器相容性">瀏覽器相容性</h2>

<p>The information shown below has been pulled from MDN's GitHub (<a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a>).</p>

<p class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>

<p>{{Compat("http.status.451")}}</p>

<h2 id="參見">參見</h2>

<ul>
 <li>{{interwiki("wikipedia", "HTTP_451", "維基百科的 HTTP 451")}}</li>
 <li>{{interwiki("wikipedia", "華氏451度", "維基百科的華氏451度")}}(該請求碼的數字詞源)</li>
</ul>