aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/http/status/426
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/http/status/426
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/http/status/426')
-rw-r--r--files/zh-cn/web/http/status/426/index.html49
1 files changed, 49 insertions, 0 deletions
diff --git a/files/zh-cn/web/http/status/426/index.html b/files/zh-cn/web/http/status/426/index.html
new file mode 100644
index 0000000000..369c831211
--- /dev/null
+++ b/files/zh-cn/web/http/status/426/index.html
@@ -0,0 +1,49 @@
+---
+title: 426 Upgrade Required
+slug: Web/HTTP/Status/426
+tags:
+ - 响应状态码
+ - 客户端错误
+translation_of: Web/HTTP/Status/426
+---
+<div>{{HTTPSidebar}}</div>
+
+<p><code><strong>426 Upgrade Required</strong></code> 是一种HTTP协议的错误状态代码,表示服务器拒绝处理客户端使用当前协议发送的请求,但是可以接受其使用升级后的协议发送的请求。</p>
+
+<p>服务器会在响应中使用 {{HTTPHeader("Upgrade")}} 首部来指定要求的协议。</p>
+
+<h2 id="状态">状态</h2>
+
+<pre class="syntaxbox">426 Upgrade Required</pre>
+
+<h2 id="示例">示例</h2>
+
+<pre>HTTP/1.1 426 Upgrade Required
+Upgrade: HTTP/3.0
+Connection: Upgrade
+Content-Length: 53
+Content-Type: text/plain
+
+This service requires use of the HTTP/3.0 protocol</pre>
+
+<h2 id="规范">规范</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Title</th>
+ </tr>
+ <tr>
+ <td>{{RFC("7231", "426 Upgrade Required" , "6.5.15")}}</td>
+ <td>Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="相关内容">相关内容</h2>
+
+<ul>
+ <li>{{HTTPHeader("Upgrade")}}</li>
+ <li>{{HTTPStatus("101")}} <code>Switching Protocol</code></li>
+</ul>