Skip to content

Commit

Permalink
doc: docs/http-status-code.md (#411)
Browse files Browse the repository at this point in the history
Updated some translation from original Chinese docs, include:
 - String "Means"
 - The translation of 2xx response code
 - The translation of 4xx response code
 - More specifical explanation of 402 Payment Required response code (original English docs' are too brief)
PS: I'm not English native speaker, so there's may grammar mistakes in this PR description. 2c9a399
  • Loading branch information
jaywcjlove committed Aug 11, 2023
1 parent 7b11b4d commit 85d3d9b
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions CONTRIBUTORS.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion data.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion data.json

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions docs/http-status-code.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,35 +32,35 @@
<p>HTTP 状态码备忘清单。 每个 HTTP 状态代码的快速参考。</p>
</div></header><div class="menu-tocs"><div class="menu-btn"><svg aria-hidden="true" fill="currentColor" height="1em" width="1em" viewBox="0 0 16 16" version="1.1" data-view-component="true">
<path fill-rule="evenodd" d="M2 4a1 1 0 100-2 1 1 0 000 2zm3.75-1.5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zm0 5a.75.75 0 000 1.5h8.5a.75.75 0 000-1.5h-8.5zM3 8a1 1 0 11-2 0 1 1 0 012 0zm-1 6a1 1 0 100-2 1 1 0 000 2z"></path>
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#http-状态码">HTTP 状态码</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#means">Means</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#2xx-成功的">2xx. 成功的</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#4xx-客户端错误">4xx. 客户端错误</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#1xx-信息">1xx. 信息</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#3xx-重定向">3xx. 重定向</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#5xx-服务器错误">5xx. 服务器错误</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#restful-api">RESTful API</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#5xx-永久性否定">5xx 永久性否定</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#另见">另见</a></div></div><div class="h1wrap-body"><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="http-状态码"><a aria-hidden="true" tabindex="-1" href="#http-状态码"><span class="icon icon-link"></span></a>HTTP 状态码</h2><div class="wrap-body">
</div></div><div class="h2wrap-body"><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="means"><a aria-hidden="true" tabindex="-1" href="#means"><span class="icon icon-link"></span></a>Means</h3><div class="wrap-body">
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#http-状态码">HTTP 状态码</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#含义">含义</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#2xx-成功">2xx. 成功</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#4xx-客户端错误">4xx. 客户端错误</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#1xx-信息">1xx. 信息</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#3xx-重定向">3xx. 重定向</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#5xx-服务器错误">5xx. 服务器错误</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#restful-api">RESTful API</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#5xx-永久性否定">5xx 永久性否定</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#另见">另见</a></div></div><div class="h1wrap-body"><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="http-状态码"><a aria-hidden="true" tabindex="-1" href="#http-状态码"><span class="icon icon-link"></span></a>HTTP 状态码</h2><div class="wrap-body">
</div></div><div class="h2wrap-body"><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="含义"><a aria-hidden="true" tabindex="-1" href="#含义"><span class="icon icon-link"></span></a>含义</h3><div class="wrap-body">
<ul>
<li><a href="#1xx-%E4%BF%A1%E6%81%AF" class="tooltip">1xx: Informational<em class="tooltiptext">这意味着已收到请求并且该过程正在继续</em></a></li>
<li><a href="#2xx-%E6%88%90%E5%8A%9F%E7%9A%84" class="tooltip">2xx: Success<em class="tooltiptext">这意味着该操作已成功接收、理解和接受</em></a></li>
<li><a href="#3xx-%E9%87%8D%E5%AE%9A%E5%90%91" class="tooltip">3xx: Redirection<em class="tooltiptext">这意味着必须采取进一步行动才能完成请求</em></a></li>
<li><a href="#4xx-%E5%AE%A2%E6%88%B7%E7%AB%AF%E9%94%99%E8%AF%AF" class="tooltip">4xx: Client Error<em class="tooltiptext">这意味着请求包含不正确的语法或无法完成</em></a></li>
<li><a href="#5xx-%E6%9C%8D%E5%8A%A1%E5%99%A8%E9%94%99%E8%AF%AF" class="tooltip">5xx: Server Error<em class="tooltiptext">这意味着服务器未能满足明显有效的请求</em></a></li>
<li><a href="#1xx-%E4%BF%A1%E6%81%AF" class="tooltip">1xx: 信息<em class="tooltiptext">代表已收到请求并且该过程正在继续</em></a></li>
<li><a href="#2xx-%E6%88%90%E5%8A%9F" class="tooltip">2xx: 成功<em class="tooltiptext">代表该操作已成功接收、理解和接受</em></a></li>
<li><a href="#3xx-%E9%87%8D%E5%AE%9A%E5%90%91" class="tooltip">3xx: 重定向<em class="tooltiptext">代表必须采取进一步行动才能完成请求</em></a></li>
<li><a href="#4xx-%E5%AE%A2%E6%88%B7%E7%AB%AF%E9%94%99%E8%AF%AF" class="tooltip">4xx: 客户端错误<em class="tooltiptext">代表请求包含不正确的语法或无法完成</em></a></li>
<li><a href="#5xx-%E6%9C%8D%E5%8A%A1%E5%99%A8%E9%94%99%E8%AF%AF" class="tooltip">5xx: 服务器错误<em class="tooltiptext">代表服务器未能满足明显有效的请求</em></a></li>
</ul>
</div></div></div><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="2xx-成功的"><a aria-hidden="true" tabindex="-1" href="#2xx-成功的"><span class="icon icon-link"></span></a>2xx. 成功的</h3><div class="wrap-body">
</div></div></div><div class="wrap h3body-not-exist row-span-2"><div class="wrap-header h3wrap"><h3 id="2xx-成功"><a aria-hidden="true" tabindex="-1" href="#2xx-成功"><span class="icon icon-link"></span></a>2xx. 成功</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-2-->
<ul>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1" class="tooltip">200: OK<em class="tooltiptext">请求没问题</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.3.2" class="tooltip">201: Created<em class="tooltiptext">请求完成,并创建了一个新资源</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.3.3" class="tooltip">202: Accepted<em class="tooltiptext">接受请求进行处理,但处理未完成</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.3.4" class="tooltip">203: Non-Authoritative Information<em class="tooltiptext">实体标头中的信息来自本地或第三方副本,而不是来自原始服务器</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.3.5" class="tooltip">204: No Content<em class="tooltiptext">响应中给出了状态码和标头,但响应中没有实体主体</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.3.6" class="tooltip">205: Reset Content<em class="tooltiptext">浏览器应清除用于此事务的表单以获取其他输入</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7233#section-4.1" class="tooltip">206: Partial Content<em class="tooltiptext">服务器正在返回请求大小的部分数据。 用于响应指定 Range 标头的请求。 服务器必须使用 Content-Range 标头指定响应中包含的范围</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1" class="tooltip">200: OK<em class="tooltiptext">请求成功</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.3.2" class="tooltip">201: 已创建<em class="tooltiptext">请求成功,并创建了新的资源</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.3.3" class="tooltip">202: 已接受<em class="tooltiptext">请求成功,但处理尚未完成</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.3.4" class="tooltip">203: Non-Authoritative Information<em class="tooltiptext">请求成功,但负载经过了第三方服务器的修改,而非原始负载</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.3.5" class="tooltip">204: No Content<em class="tooltiptext">响应给出了状态码和标头,但响应中没有实体主体</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.3.6" class="tooltip">205: Reset Content<em class="tooltiptext">请求成功,但浏览器应重置文档视图,比如清空表单内容、重置 canvas 状态或者刷新用户界面</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7233#section-4.1" class="tooltip">206: Partial Content<em class="tooltiptext">请求成功,服务器正在返回请求所指定部分的数据。用于响应标头中指定了数据区间的请求。服务器必须使用 Content-Range 标头指定响应中包含的数据区间</em></a></li>
</ul>
</div></div></div><div class="wrap h3body-not-exist row-span-3"><div class="wrap-header h3wrap"><h3 id="4xx-客户端错误"><a aria-hidden="true" tabindex="-1" href="#4xx-客户端错误"><span class="icon icon-link"></span></a>4xx. 客户端错误</h3><div class="wrap-body">
<!--rehype:wrap-class=row-span-3-->
<ul>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1" class="tooltip">400: Bad Request<em class="tooltiptext">服务器不理解该请求</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7235#section-3.1" class="tooltip">401: Unauthorized<em class="tooltiptext">请求的页面需要用户名和密码</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.5.2" class="tooltip">402: Payment Required<em class="tooltiptext">您还不能使用此代码</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.5.3" class="tooltip">403: Forbidden<em class="tooltiptext">禁止访问请求的页面</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.5.2" class="tooltip">402: Payment Required<em class="tooltiptext">您目前还不能使用此代码。402 状态码被创建最初用于表明请求的内容只有付费之后才能获取。目前不存在标准的使用约定</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.5.3" class="tooltip">403: Forbidden<em class="tooltiptext">禁止了对于此页面的请求</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.5.4" class="tooltip">404: Not Found<em class="tooltiptext">服务器找不到请求的页面</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.5.5" class="tooltip">405: Method Not Allowed<em class="tooltiptext">请求中指定的方法是不允许的</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.5.5" class="tooltip">405: Method Not Allowed<em class="tooltiptext">请求中指定的方法不被允许</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.5.6" class="tooltip">406: Not Acceptable<em class="tooltiptext">服务器只能生成客户端不接受的响应</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7235#section-3.2" class="tooltip">407: Proxy Authentication Required<em class="tooltiptext">您必须先通过代理服务器进行身份验证,然后才能提供此请求</em></a></li>
<li><a href="https://tools.ietf.org/html/rfc7231#section-6.5.7" class="tooltip">408: Request Timeout<em class="tooltiptext">请求花费的时间比服务器准备等待的时间长</em></a></li>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@
<!--rehype:class=home-card home-links-->
<p>如果你有资源,可以很方便<a href="https://github.com/jaywcjlove/reference/issues/102#issue-1451649637">部署 web 版</a>,这非常简单,只需要克隆 <a href="https://github.com/jaywcjlove/reference/tree/gh-pages">gh-pages</a> 分支代码到你的静态服务就可以了,还可以使用 <a href="https://hub.docker.com/r/wcjiang/reference">docker</a> 快捷部署 web 版。</p>

</div></div><div class="h2wrap-body"></div></div></div></div><footer class="footer-wrap"><footer class="max-container">© 2022 Kenny Wang. Updated on 2023/08/05 09:33:02</footer></footer><script src="data.js?v=1.4.1" defer></script><script src="js/fuse.min.js?v=1.4.1" defer></script><script src="js/main.js?v=1.4.1" defer></script><div id="mysearch"><div class="mysearch-box"><div class="mysearch-input"><div><svg xmlns="http://www.w3.org/2000/svg" height="1em" width="1em" viewBox="0 0 18 18">
</div></div><div class="h2wrap-body"></div></div></div></div><footer class="footer-wrap"><footer class="max-container">© 2022 Kenny Wang. Updated on 2023/08/11 16:44:56</footer></footer><script src="data.js?v=1.4.1" defer></script><script src="js/fuse.min.js?v=1.4.1" defer></script><script src="js/main.js?v=1.4.1" defer></script><div id="mysearch"><div class="mysearch-box"><div class="mysearch-input"><div><svg xmlns="http://www.w3.org/2000/svg" height="1em" width="1em" viewBox="0 0 18 18">
<path fill="currentColor" d="M17.71,16.29 L14.31,12.9 C15.4069846,11.5024547 16.0022094,9.77665502 16,8 C16,3.581722 12.418278,0 8,0 C3.581722,0 0,3.581722 0,8 C0,12.418278 3.581722,16 8,16 C9.77665502,16.0022094 11.5024547,15.4069846 12.9,14.31 L16.29,17.71 C16.4777666,17.8993127 16.7333625,18.0057983 17,18.0057983 C17.2666375,18.0057983 17.5222334,17.8993127 17.71,17.71 C17.8993127,17.5222334 18.0057983,17.2666375 18.0057983,17 C18.0057983,16.7333625 17.8993127,16.4777666 17.71,16.29 Z M2,8 C2,4.6862915 4.6862915,2 8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 Z"></path>
</svg><input id="mysearch-input" type="search" placeholder="搜索" autocomplete="off"><div class="mysearch-clear"></div></div><button id="mysearch-close" type="button">搜索</button></div><div class="mysearch-result"><div id="mysearch-menu"></div><div id="mysearch-content"></div></div></div></div></body>
</html>

0 comments on commit 85d3d9b

Please sign in to comment.