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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

New HTTP Codes

360 点作者 alcuadrado超过 13 年前

18 条评论

ck2超过 13 年前
Summary:<p><pre><code> 428 Precondition Required 429 Too Many Requests 431 Request Header Fields Too Large 511 Network Authentication Required </code></pre> I've been using <i>414 Request-URI Too Long</i> for 431 and <i>503 Service Temporarily Unavailable</i> for 429
评论 #3134407 未加载
pavpanchekha超过 13 年前
These all seem immediately practical status codes that add semantics I've been wanting. Great! In particular I am happy about the 429 Too Many Requests header, as every time I've done rate throttling I've had to quibble over what code to actually send back.
评论 #3134000 未加载
评论 #3134252 未加载
评论 #3134079 未加载
stygianguest超过 13 年前
A bit offtopic, but does anybody know what typesetting system was used to produce this document? It looks like troff manpages. Is that what is used for RFC documents as well? I love the oldschool look of it.
评论 #3134030 未加载
评论 #3135976 未加载
评论 #3138620 未加载
评论 #3134002 未加载
antimora超过 13 年前
I wish HTTP requests submitted time zone information.
评论 #3134271 未加载
评论 #3134448 未加载
评论 #3133981 未加载
评论 #3134045 未加载
Robin_Message超过 13 年前
511 seems a little pointless -- browsers can treat it differently, but if the intermediate gateway intends to be malicious, then it won't return 511 anyway. The only useful thing I can see is avoiding accidents/attacks on the gateway compromising its clients.
评论 #3134035 未加载
评论 #3134016 未加载
评论 #3133999 未加载
aninteger超过 13 年前
Isn't this something that the http server handles? I am not in web development except for basic php and cgi scripts. Are people actually writing web app code to dictate what http code comes back on each request?
评论 #3134940 未加载
评论 #3135444 未加载
评论 #3135963 未加载
ericmoritz超过 13 年前
Whelp I guess this needs updating now, <a href="https://github.com/basho/webmachine/raw/master/docs/http-headers-status-v3.png" rel="nofollow">https://github.com/basho/webmachine/raw/master/docs/http-hea...</a>
rwolf超过 13 年前
Today I learned about If-Match. 428 Precondition Required looks great!
afhof超过 13 年前
429 looks to me as if it might be addressing aggressive http pipelining, but I was under the impression that most browsers have pipelining turned off.
评论 #3138150 未加载
billpg超过 13 年前
Shouldn't 429 (Too many requests) be a 5xx code?
评论 #3134622 未加载
评论 #3134814 未加载
edoloughlin超过 13 年前
One quibble. Perhaps I don't quite get the philosophy behind these, but wouldn't it be more useful to have a uniform structure to the responses. E.g., how useful is it to the average user to get a human-readable response for 428 when it's likely to be consumed by an app (i.e., JS) which would have to parse the suggested &#60;p&#62; tag?
评论 #3135907 未加载
netghost超过 13 年前
429 Too Many Requests is really great for APIs, hopefully http clients start supporting this.
a5seo超过 13 年前
428 seems interesting as a way to serialize objects and store them client-side, but assure the version stays consistent with the server. Or am I overthinking it?
worldimperator超过 13 年前
Can't wait to set browser dependent status codes :-D
textgoeshere超过 13 年前
Can I start using any of these codes right now? It looks like this is still a draft. Thanks!
dochtman超过 13 年前
What happened to 430?
评论 #3138802 未加载
评论 #3134504 未加载
afdssfda超过 13 年前
511: 'Unknown clients then have all traffic blocked, except for that on TCP port 80, which is sent to a HTTP server (the "login server") dedicated to "logging in" unknown clients, and of course traffic to the login server itself.'<p>Ugh. Couldn't this be more generic?
评论 #3135814 未加载
评论 #3135862 未加载
bromagosa超过 13 年前
OMG really? Do we want to make HTTP even bigger? Don't we want to dump it for good and look for something more suitable to what the modern web needs instead?
评论 #3134817 未加载
评论 #3137523 未加载
评论 #3134722 未加载