4 ms·
Some further relevant history: There’s an official registry of status codes: https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml https:/
by chrismorgan 6y ago
Some further relevant history:
There’s an official registry of status codes: https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml https://www.iana.org/assignments/http-status-codes/http-stat....
HTTP libraries normally use this as their canonical source of status codes that they should have constants (or whatever) defined for.
But 418 I'm a teapot is not in that registry. It’s not clear to me why it wasn’t put in when the registry was established, but it seems most likely that someone made an executive judgement against pointless fun.
To my knowledge, it’s the only status code from an RFC that has not made it into the registry. So many HTTP libraries, perhaps most, have this one exception, an extra status code not from the registry.
In 2017, the httpbis working group chairman Mark Nottingham (mnot) sought to get 418 removed from libraries everywhere (since it wasn’t registered and wasn’t serious); this met with popular resistance (people like their fun) and so he changed direction and sought to have 418 registered properly instead, with https://datatracker.ietf.org/doc/draft-nottingham-thanks-larry/ https://datatracker.ietf.org/doc/draft-nottingham-thanks-lar.... But that draft was allowed to expire and I’m not sure why.
- jwilk 6y agoHN discussions: https://news.ycombinator.com/item?id=14987460 https://news.ycombinator.com/item?id=14987460 https://news.ycombinator.com/item?id=15004907 https://news.ycombinator.com/item?id=15004907
- jychang 6y ago> But that draft was allowed to expire and I’m not sure why. Because the current status quo is good enough. Like in theory, sure, removing 418 makes sense for cleanup purposes. Or barring that, officially registering it. In practice, it completely does not matter whatsoever. Keeping pointless things out of the registry is fine. And they're not stupid, they're never going to assign 418 to something else, so having 418 in libraries is not going to be an issue. At the end of the day, the current situation is ideal.
- realaleris149 6y agoThe linked site does not contain all the statuses from the original registry, for example 425 Too Early is missing.
- pwdisswordfish4 6y agoThe draft was simply integrated into a larger-scope document, still actively maintained (last draft published 12th of July): https://www.ietf.org/id/draft-ietf-httpbis-semantics-10.html#name-418-unused https://www.ietf.org/id/draft-ietf-httpbis-semantics-10.html... Note the description doesn’t say ‘I’m A Teapot’.
- chrismorgan 6y agoAh, good to know; thanks. I’m disappointed they’re aiming for unused rather than a regular entry, but it’s definitely better than unregistered.