Live data from Hacker News

New HTTP Codes

tools.ietf.org

1–10 of 84 posts

Re: New HTTP Codes

#3
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.

Re: New HTTP Codes

#5
Summary:

  428 Precondition Required
  429 Too Many Requests
  431 Request Header Fields Too Large 
  511 Network Authentication Required
I've been using 414 Request-URI Too Long for 431 and 503 Service Temporarily Unavailable for 429

Re: New HTTP Codes

#6
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.

Re: New HTTP Codes

#7
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.

Re: New HTTP Codes

#9

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.

I don't think 511 is so much for security, I see it as being more focused on usability. For example if you have thick client program that talks to a backend server (perhaps for updates) and it receives a 511 response it can then tell the user that they need to login to the proxy (or just pop up a web browser for them).

Re: New HTTP Codes

#10

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.

Yeah. This is great. Will work great with APIs.
Post reply on HN