Live data from Hacker News

418 I’m a teapot

developer.mozilla.org

61–70 of 146 posts

Re: 418 I’m a teapot

#61

Earlier quoted context omitted.

We return 418s for captcha failures.

Surely that should be a 401 unauthorized?

Could, but when it comes to handling errors in the frontend, I find it is easier for the discriminator to be the actual status code when possible, rather than needing multiple additional properties.

Re: 418 I’m a teapot

#62
post #48

The older generation of software craftsmen have been reading about it for a while now and the joke got a bit tedious at this point.

Eh, I remember it being introduced and it always puts a smile on my face. Though I admittedly don't click on it after reading the title.

Its not like people are posting this daily

Re: 418 I’m a teapot

#64
post #2

Discussions in: 2020 (153 points, 118 comments) https://news.ycombinator.com/item?id=24206899 2021 (193 points, 108 comments) https://news.ycombinator.com/item?id=28541327 2023 (206 points, 189 comments) https://news.ycombinator.com/item?id=36090344

I think we were due another

Typically people post older conversations so people can check them out, not as a chastisement for reposting.

Re: 418 I’m a teapot

#65
post #53

Earlier quoted context omitted.

Other than the humor in it, makes you wonder why they'd pick 418. It does sometimes feel like some errors are missing from the http codes, prompting developers to either create their own, or repurpose some, like 418, where they feel relatively safe that it won't conflict with something. It never ceases to amaze how http status codes can be misused. My favorite is still the customer who had built a service that would…

There are definitely missing codes, which is why sometimes the WebDAV status additions get used in purported RESTful APIs—which is semantically wrong, but often carries a lot of helpful meaning. For example, things like 422: Unprocessable Content or 423: Locked are really helpful to convey meaning, but not available in plain HTTP.

> 422: Unprocessable Content

I honestly would have thought 400 Bad Request would cover that? Might be too generic though. Is "422" "ok, I admit it's formatted correctly, but I can't process it for some higher-level reason than syntax"?

(Just reading through 4xx codes, and I think I need to use 410 Gone a lot more often. Does anyone know if search engines treat 404 and 410 differently?)

Re: 418 I’m a teapot

#69
post #51

If you are bored you can read the discussion when _mnot_ tried removing 418 status code from different languages and implementations because it wasn't technically correct. https://github.com/nodejs/node/issues/14644 https://github.com/golang/go/issues/21326 And someone even ended up making a website http://save418.com/

This 418 stuff reminds me of a previous job where we had some arguments about putting emojis in our applications. I was against it and a coworker was for it. Like putting rocket ship emoji when an operation succeeds. My main argument was that if you put things like that in your applications then people start having opinions about it and they want to discuss it and add more to certain places or remove from other place…

We just had a work party and they invited the whole staff. I was outraged they didn't do a proper controlled A/B test. Management will never know if having fun together was a good use of their money. Idiots.

Re: 418 I’m a teapot

#70
post #2

Discussions in: 2020 (153 points, 118 comments) https://news.ycombinator.com/item?id=24206899 2021 (193 points, 108 comments) https://news.ycombinator.com/item?id=28541327 2023 (206 points, 189 comments) https://news.ycombinator.com/item?id=36090344

I think we were due another

Every April 18th
Post reply on HN