Live data from Hacker News

HTTP Status 418 – I'm a teapot

developer.mozilla.org

11–20 of 114 posts

Re: HTTP Status 418 – I'm a teapot

#12
post #9
post #7

I return 418 in some cases where somehow someone ended up somewhere in the code that I otherwise thought impossible. It works pretty well as far as letting folks know that something particularly unusual has happened / this isn't your ordinary error.

A less humorous unusual status code is 451. Unfortunately, it probably should be used more. https://en.wikipedia.org/wiki/HTTP_451

I think that would get attention, although I wouldn't want there to be panic ;)

Re: HTTP Status 418 – I'm a teapot

#13
post #7

I return 418 in some cases where somehow someone ended up somewhere in the code that I otherwise thought impossible. It works pretty well as far as letting folks know that something particularly unusual has happened / this isn't your ordinary error.

Except a 4xx error should not be issued for internal errors.

Re: HTTP Status 418 – I'm a teapot

#14
post #10

It's quaint, it's a joke about IoT devices before they were everywhere. I'm currently disappointed that the office has "upgraded" coffee machines and the new one has a permanent internet connection and shows ads/branding (for coffee) when it is idle.

I read a while ago about some coffee machines unintentionally bridging an internal network and spreading ransomware. I think they had Windows XP on the inside. Couldn't help but find the situation funny in a way.

Re: HTTP Status 418 – I'm a teapot

#16
post #10

It's quaint, it's a joke about IoT devices before they were everywhere. I'm currently disappointed that the office has "upgraded" coffee machines and the new one has a permanent internet connection and shows ads/branding (for coffee) when it is idle.

A couple of years ago the gas pumps at station nearest to my place were replaced by devices with screens that play ads with sound - so far just touting discounts with their supermarket loyalty cards. They start when someone picks up the nozzle, and were annoyingly loud initially; the sound has been turned down a bit lately.

(Well, there's another reason for me to be pleased with having traded one of the family cars for an electric that charges at home ...)

Re: HTTP Status 418 – I'm a teapot

#17
post #15

Support for this landed in Microsoft Edge v12, according to the table in the article. So it's supported across all major browsers, green across the board. But all that may be humorous lisense.

Hm, that's surprising. I added it as a known error response to the Internet Explorer dev tools in 2015 (inadvertently causing "I'm a teapot" to be localized into 108 languages...). I wonder what "support" means.

Re: HTTP Status 418 – I'm a teapot

#18
post #10

It's quaint, it's a joke about IoT devices before they were everywhere. I'm currently disappointed that the office has "upgraded" coffee machines and the new one has a permanent internet connection and shows ads/branding (for coffee) when it is idle.

I read a while ago about some coffee machines unintentionally bridging an internal network and spreading ransomware. I think they had Windows XP on the inside. Couldn't help but find the situation funny in a way.

Good old XP.

Cleaned someone’s virus infected computer out. Plugged the network jack into the cable modem. Under 10 second and I had to start from scratch…

When work tells us they are blocking all external connections in data center, I can’t really argue even with how much work it is.

Re: HTTP Status 418 – I'm a teapot

#19
post #7

I return 418 in some cases where somehow someone ended up somewhere in the code that I otherwise thought impossible. It works pretty well as far as letting folks know that something particularly unusual has happened / this isn't your ordinary error.

Except a 4xx error should not be issued for internal errors.

I do hope this is a humorous comment

Re: HTTP Status 418 – I'm a teapot

#20
post #16
post #10

It's quaint, it's a joke about IoT devices before they were everywhere. I'm currently disappointed that the office has "upgraded" coffee machines and the new one has a permanent internet connection and shows ads/branding (for coffee) when it is idle.

A couple of years ago the gas pumps at station nearest to my place were replaced by devices with screens that play ads with sound - so far just touting discounts with their supermarket loyalty cards. They start when someone picks up the nozzle, and were annoyingly loud initially; the sound has been turned down a bit lately. (Well, there's another reason for me to be pleased with having traded one of the family cars f…

There are usually buttons next to pump screens and one will mute the sound. Just push them one by one.
Post reply on HN