aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/http/status/402
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/402
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/402')
-rw-r--r--files/zh-cn/web/http/status/402/index.html54
1 files changed, 54 insertions, 0 deletions
diff --git a/files/zh-cn/web/http/status/402/index.html b/files/zh-cn/web/http/status/402/index.html
new file mode 100644
index 0000000000..50d7cbf21e
--- /dev/null
+++ b/files/zh-cn/web/http/status/402/index.html
@@ -0,0 +1,54 @@
+---
+title: 402 Payment Required
+slug: Web/HTTP/Status/402
+tags:
+ - HTTP
+ - 支付成功才可使用
+ - 状态码
+ - 错误码
+translation_of: Web/HTTP/Status/402
+---
+<p>{{SeeCompatTable}}</p>
+
+<p><strong style="font-size: 1rem; letter-spacing: -0.00278rem;"><code>402 Payment Required</code></strong> 是一个被保留使用的非标准客户端错误状态响应码。</p>
+
+<p>有时, 这个状态码表明直到客户端付费之后请求才会被处理。402状态码被创建最初目的是用于数字现金或微型支付系统, 表明客户端请求的内容只有付费之后才能获取。目前还不存在标准的使用约定, 不同的实体可以在不同的环境下使用。</p>
+
+<h2 id="状态">状态</h2>
+
+<pre>402 Payment Required</pre>
+
+<h2 id="响应样例">响应样例</h2>
+
+<pre>HTTP/1.1 402 Payment Required
+Date: Wed, 21 Oct 2015 07:28:00 GMT
+</pre>
+
+<h2 id="规范">规范</h2>
+
+<table>
+ <tbody>
+ <tr>
+ <th scope="col">规范</th>
+ <th scope="col">标题</th>
+ </tr>
+ <tr>
+ <td>{{RFC("7231", "402 Payment Required" , "6.5.2")}}</td>
+ <td>HTTP/1.1: Semantics and Content</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+<div class="hidden">
+<p>本页面的兼容性表从结构化数据中生成, 如果你想对数据做出贡献,请查看<a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a>并向我们发送拉取请求</p>
+</div>
+
+<p>{{Compat("http.status.402")}}</p>
+
+<h2 id="相关内容">相关内容</h2>
+
+<ul>
+ <li><a href="/en-US/docs/Web/HTTP/Authentication">HTTP authentication</a></li>
+</ul>