6 ms·
> As with other HTTP error codes, the real answer is that one should probably use whatever status code is most convenient. That's all you need to know. HTTP, l
by p-e-w 3y ago
> As with other HTTP error codes, the real answer is that one should probably use whatever status code is most convenient.
That's all you need to know. HTTP, like the other components of the web stack, is an organically grown monstrosity that resembles what you would get if a thousand random people shat on a pile. Any attempt to extract philosophical purity and/or rigorous discussion from it is a massive waste of time. Just use what you feel makes sense at the current moment, and move on.
- Dalewyn 3y agoHTTP 418 I'm a teapot
- sterlind 3y agoUnironically, this feels right. It's not an error, it's not a success. It's just announcing what it is, a teapot - er, web server.
- anonymous_sorry 3y agoBut 4xx codes are client errors. 418 - I'm a teapot is specified as an error ("I can't brew you a coffee, silly: I'm a teapot")[0]. [0] https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418 https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418
- YoshiRulz 3y agoThe client is mistaken in requesting coffee.
- d0mine 3y agoThe error seems appropriate: the client expects erroneously something from the server that it can't provide (otherwise there would be something other than the default page to return)
- anonymous_sorry 3y agoI mean sure, but it feels like a stretch (albeit a whimsical one) to say its more appropriate than 404 Not Found, which could also be described as "client expects erroneously something from the server that it can't provide".
- panzi 3y agoMaybe 405 or 406 then? I mean, sure it's not right either, but better than 418? (I'd say go with 404.)
- deleted 3y ago[deleted]
- vincnetas 3y agoHTTP 420 Enhance your calm
- rzzzt 3y agoHTTP 527 Railgun Listener to Origin
- adra 3y agoThis one actually gets use. I bumped up against an error in our internal services and it was returning 420's... Not fun to diagnose
- layble 3y agoDon’t give Elon any ideas
- throwawaymobule 3y agoI think twitter is where it was first used, actually. They stopped after a while, but from what I read, it was a code you got before hitting your API limit. (iirc, you got a 417/429 error when you ran out)
- heywhatupboys 3y ago[flagged]
- Jabrov 3y agoLighten up chap
- heywhatupboys 3y agoNo, just like engineers, doctors, etc. take their work seriously so should programmers. There are places for jokes. This is not one of them.
- p-e-w 3y agoYou're wasting your time. Despite the fact that computers literally run the world, the vast majority of software engineers have collectively decided that their work is only deserving of ridicule and stupid memes. Software engineering is the only profession in human history where self-hate is the cultural norm, and any attempt to imbue the work with seriousness and respect is invariably met with contempt from the professional masses.
- hughesjj 3y agoAs always, relevant xkcd https://xkcd.com/2030/ https://xkcd.com/2030/
- p-e-w 3y agoBoth the "joke" you linked to, and the fact that you linked to it, are part of the problem I described. If you can't respect what you do, I promise you that others won't either.
- Dalewyn 3y agoIf it wasn't obvious (it probably wasn't), I like HTTP 418 and I applaud movements to make sure it stays. Having a good sense of humor is akin to oil that keeps the world working properly.