Live data from Hacker News

418 I'm a teapot

developer.mozilla.org

81–90 of 195 posts

Re: 418 I'm a teapot

#81

Earlier quoted context omitted.

Kinda thought this should respond 404

A 404 would mean that the client should not expect to find coffee there at all, which in this case would actually be better replaced by 418. However, if coffee can be found, just not right now, then it's the server's fault, so a 5xx code is in order, and 503 fits the bill best.

Someone that actually knows proper HTTP semantics on HN? I'm positively surprised.

Re: 418 I'm a teapot

#82
post #59

Many years ago, some person misconfigured their squid proxy and was hitting https://jsonip.com to the point my server at the time was turning green in the gills. I started responding with 418 "You are a tea kettle" or something like that to those specific requests. The originating dev actually paid attention to their error messages and quickly resolved their config issue. Fast forward to March this year. Some fucking…

No, sorry this is 100% on you. You should have implemented throttling, and daily query limits. Once you put something on the internet for free, you can't complain then if people are using it.

You absolutely can. Nobody has an obligation to serve you if you are an asshole.

Re: 418 I'm a teapot

#83
post #59

Many years ago, some person misconfigured their squid proxy and was hitting https://jsonip.com to the point my server at the time was turning green in the gills. I started responding with 418 "You are a tea kettle" or something like that to those specific requests. The originating dev actually paid attention to their error messages and quickly resolved their config issue. Fast forward to March this year. Some fucking…

That’s typically why it’s a good idea to include a crappy “generate API” key button so you can block traffic like this, you don’t even need a registration process - someone can just email with reference to their API key to discuss their issues.

Re: 418 I'm a teapot

#84
post #82

Earlier quoted context omitted.

No, sorry this is 100% on you. You should have implemented throttling, and daily query limits. Once you put something on the internet for free, you can't complain then if people are using it.

You absolutely can. Nobody has an obligation to serve you if you are an asshole.

Why complain instead of mitigating? Or why not complain AND mitigate at the very least?

Do not serve it to assholes?

Re: 418 I'm a teapot

#85
post #7

Earlier quoted context omitted.

It was added as a joke, and kept because (according to https://save418.com ) > “It's a reminder that the underlying processes of computers are still made by humans”

Stupid reason imo. Adding childish humor to a protocol seems like harmless fun until you remember how much of a mess network protocols, and their specs, and their implementation is. Maybe you think a 418 error page is funny, but I think you’ll appreciate it a lot less when your application gets a rather confounding error because some service provider wanted to remind you that the underlying processes of computers are…

No, it's a great canary in the coal mine. Anyone who doesn't implement proper handling of 418 gets their general error handling facilities tested (4xx).

Re: 418 I'm a teapot

#86
post #59

Many years ago, some person misconfigured their squid proxy and was hitting https://jsonip.com to the point my server at the time was turning green in the gills. I started responding with 418 "You are a tea kettle" or something like that to those specific requests. The originating dev actually paid attention to their error messages and quickly resolved their config issue. Fast forward to March this year. Some fucking…

That’s typically why it’s a good idea to include a crappy “generate API” key button so you can block traffic like this, you don’t even need a registration process - someone can just email with reference to their API key to discuss their issues.

> you don’t even need a registration process

You should put it behind a CAPTCHA of some sort however, otherwise, some smartass will just write a "library" auto-fetching an api key as soon as the one it has currently cached stops working.

And yes, that is an annoyance to users, but so what? Please direct all complaints to the comparatively small number of people responsible for the fact that the rest of us cannot have nice things.

Re: 418 I'm a teapot

#87
post #82

Earlier quoted context omitted.

You absolutely can. Nobody has an obligation to serve you if you are an asshole.

Why complain instead of mitigating? Or why not complain AND mitigate at the very least? Do not serve it to assholes?

> Or why not complain AND mitigate at the very least?

You mean, like they say they have been trying to do, in the complaint?

Re: 418 I'm a teapot

#88
post #59

Many years ago, some person misconfigured their squid proxy and was hitting https://jsonip.com to the point my server at the time was turning green in the gills. I started responding with 418 "You are a tea kettle" or something like that to those specific requests. The originating dev actually paid attention to their error messages and quickly resolved their config issue. Fast forward to March this year. Some fucking…

No, sorry this is 100% on you. You should have implemented throttling, and daily query limits. Once you put something on the internet for free, you can't complain then if people are using it.

> you can't complain then if people are using it.

Yes he can complain, and bombarding a free service for unlimited requests isn't okay.

For starters because the people doing that, will usually be among the first to cry when the free service stops being free, blocks their requests or suddenly requires an API key.

Re: 418 I'm a teapot

#89

Earlier quoted context omitted.

No, sorry this is 100% on you. You should have implemented throttling, and daily query limits. Once you put something on the internet for free, you can't complain then if people are using it.

> you can't complain then if people are using it. Yes he can complain, and bombarding a free service for unlimited requests isn't okay. For starters because the people doing that, will usually be among the first to cry when the free service stops being free, blocks their requests or suddenly requires an API key.

> bombarding a free service for unlimited requests isn't okay

Hummmm.... OP's website on https://getjsonip.com/ says:

> Supports unlimited requests and is free.

Seems like we have a bit of a contradiction here.

Re: 418 I'm a teapot

#90
post #59

Many years ago, some person misconfigured their squid proxy and was hitting https://jsonip.com to the point my server at the time was turning green in the gills. I started responding with 418 "You are a tea kettle" or something like that to those specific requests. The originating dev actually paid attention to their error messages and quickly resolved their config issue. Fast forward to March this year. Some fucking…

Wikipedia had a similar situation with a single flower image being requested so many times. I can't find the story and don't remember it well, but I think it was a big indian company using this image to check if internet was available.

IMHO, one of the problems is that many dev. don't realize both the size of their company and the impact of so many requests.

I hop you'll find a solution, and thank you for your service!

PS: maybe you should create a dedicated post about this subject to attract visibility

Post reply on HN