TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

New HTTP status codes

48 点作者 vgnet大约 13 年前

5 条评论

zarvox大约 13 年前
Code 511 sounds really useful. If captive portals actually implemented this, it would help efforts like Convergence[1] to handle captive portals gracefully, rather than having to play a heuristic guessing game.<p>It'll be interesting to see if browser vendors and captive portal vendors both implement this, and what level of adoption they both reach.<p>[1] - <a href="http://convergence.io/" rel="nofollow">http://convergence.io/</a>
评论 #3934632 未加载
richardlblair大约 13 年前
I'll be honest, when I read the title on HN I thought for sure this post was going to make me rage.<p>When I finally reached the content on google's webcache I was pleasantly surprised. All these new status codes are not only useful, but they address issues that exists today.
ggchappell大约 13 年前
I don't understand the rationale behind the new codes.<p>In particular, look at the first one: 428 Precondition Required. This is essentially the server saying to the client, "You don't know how to make requests to me." What is the client supposed to do about it? Make requests that can result in the desired responses, of course, or stop making requests. But that's true of any 4xx response code. So what functionality does the new 428 code add? None that I can see.<p>If you click through to the RFC itself, the section on 428 says:<p><pre><code> Responses using this status code SHOULD explain how to resubmit the request successfully. </code></pre> It then gives an example of an HTML body representing a human-readable message that explains that "If-Match" should be used. Fine, that's good. I approve. But every HTTP response comes with a body; we can already do this just fine without having code 428.<p>So, again, what actual functionality does the 428 response code get us? It results in a bit of new code being added to every web client, making them all just a teensy bit more complicated. But to what end?
评论 #3933802 未加载
评论 #3933508 未加载
评论 #3934398 未加载
评论 #3933829 未加载
alpb大约 13 年前
You can see a very well compiled cheatsheet here: <a href="http://www.restapitutorial.com/httpstatuscodes.html" rel="nofollow">http://www.restapitutorial.com/httpstatuscodes.html</a>
评论 #3933740 未加载
评论 #3933680 未加载
zbowling大约 13 年前
Ironically I'm not getting any HTTP code from this link... because the site is timing out.
评论 #3933482 未加载