12 ms·
HTTP Status 418 – I'm a teapot
- midwestemo 5y agoGoogle's 418 error page: https://www.google.com/teapot https://www.google.com/teapot
- hiimshort 5y agoFun fact: if you're on mobile the site will use your accelerometer to let you pour water out of the teapot!
- samschooler 5y agoSome previous discussions on this status specifically: https://hn.algolia.com/?q=418 https://hn.algolia.com/?q=418 Some fun ones: - Discussion on the status itself: https://news.ycombinator.com/item?id=24206899 https://news.ycombinator.com/item?id=24206899 - NPM proxy users receiving ERR 418 I'm a teapot: https://news.ycombinator.com/item?id=17175960 https://news.ycombinator.com/item?id=17175960 - Reserve the 418 status code: https://news.ycombinator.com/item?id=15004907 https://news.ycombinator.com/item?id=15004907
- adeelk93 5y agoThe NPM one is fun now, but man that was a frustrating one when it was happening. Explaining to people I couldn’t deploy the app because NPM decided it was a teapot. Error messages do not need to be silly.
- spondyl 5y agoI remember I was at some training course for New Relic and we zoned out when the alert came through. Having come across 418 before, I recognised it in our failed build pipeline and facepalmed. My coworker asked how do we fix it and U said I honestly don't know because it's never actually meant to be a real error code but here we are!
- dang 5y agoThanks! I merged your list and mine to come up with: Error 418 – I'm a Teapot - https://news.ycombinator.com/item?id=25282286 https://news.ycombinator.com/item?id=25282286 - Dec 2020 (14 comments) I’m A Teapot – HTTP status code 418 - https://news.ycombinator.com/item?id=24206899 https://news.ycombinator.com/item?id=24206899 - Aug 2020 (118 comments) HTTP 418: I'm a Teapot - https://news.ycombinator.com/item?id=22215285 https://news.ycombinator.com/item?id=22215285 - Feb 2020 (9 comments) HTTP 418 I'm a Teapot - https://news.ycombinator.com/item?id=17652557 https://news.ycombinator.com/item?id=17652557 - July 2018 (39 comments) Http status 418 at overstock.com - https://news.ycombinator.com/item?id=17529017 https://news.ycombinator.com/item?id=17529017 - July 2018 (2 comments) NPM proxy users receiving ERR 418 I'm a teapot - https://news.ycombinator.com/item?id=17175960 https://news.ycombinator.com/item?id=17175960 - May 2018 (252 comments) Reserve the 418 status code - https://news.ycombinator.com/item?id=15004907 https://news.ycombinator.com/item?id=15004907 - Aug 2017 (115 comments) HTTP Error Code 418 I'm a Teapot is about to be removed from Node - https://news.ycombinator.com/item?id=14987460 https://news.ycombinator.com/item?id=14987460 - Aug 2017 (42 comments) Google teapot error - https://news.ycombinator.com/item?id=14275583 https://news.ycombinator.com/item?id=14275583 - May 2017 (12 comments) HTTP status code 418 (I'm a teapot) - https://news.ycombinator.com/item?id=13354835 https://news.ycombinator.com/item?id=13354835 - Jan 2017 (3 comments) Ask HN: What's a good coffee pot for implementing the 418 protocol? - https://news.ycombinator.com/item?id=10659595 https://news.ycombinator.com/item?id=10659595 - Dec 2015 (2 comments) Google's HTTP 418 Response - https://news.ycombinator.com/item?id=8269538 https://news.ycombinator.com/item?id=8269538 - Sept 2014 (2 comments) Service for Generating Different HTTP codes. (418 I'm a teapot) - https://news.ycombinator.com/item?id=7383566 https://news.ycombinator.com/item?id=7383566 - March 2014 (3 comments) HTTP Status Code 418 - https://news.ycombinator.com/item?id=7046027 https://news.ycombinator.com/item?id=7046027 - Jan 2014 (4 comments) I'm a teapot - https://news.ycombinator.com/item?id=3511781 https://news.ycombinator.com/item?id=3511781 - Jan 2012 (29 comments) HTTP Status 418 I'm a teapot - https://news.ycombinator.com/item?id=2221505 https://news.ycombinator.com/item?id=2221505 - Feb 2011 (33 comments) HTTP Error 418: "I'm a teapot" - https://news.ycombinator.com/item?id=235856 https://news.ycombinator.com/item?id=235856 - July 2008 (2 comments)
- daveslash 5y agoFor those who may not know, this comes from RFC 2324: ""Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0), The RFC was published 1 April 1998 (April Fool's Day). There's a long history of humorous RFCs published on 1 April. For example, RFC 1149 "IP over Avian Carriers" https://en.wikipedia.org/wiki/IP_over_Avian_Carriers https://en.wikipedia.org/wiki/IP_over_Avian_Carriers List of Additional April Fool's RFCs https://en.wikipedia.org/wiki/April_Fools%27_Day_Request_for_Comments https://en.wikipedia.org/wiki/April_Fools%27_Day_Request_for...
- Teknoman117 5y agoI still love that people actually went through the effort to "implement" it.
- mzzter 5y agoAny links to APIs that implement a 418 HTTP response code?
- lodovic 5y ago.Net seems to have it: https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.statuscodes.status418imateapot?view=aspnetcore-5.0 https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnet...
- jamespwilliams 5y agohttp.StatusTeapot in Go: https://pkg.go.dev/net/http#pkg-constants https://pkg.go.dev/net/http#pkg-constants 4k+ results on Github: https://github.com/search?utf8=&q=http.StatusTeapot&type=Code; https://github.com/search?utf8=&q=http.StatusTeapot&type=Cod... ~600 excluding _test.go files: https://github.com/search?q=http.StatusTeapot+-filename%3A*_test.go&type=Code https://github.com/search?q=http.StatusTeapot+-filename%3A*_...
- deleted 5y ago[deleted]
- jonwinstanley 5y agoNice to see more members of the community discovering a classic. Also... I am so old I've seen this on the homepage multiple times :-(
- exdsq 5y agoI’m in my late twenties and I’ve seen it dozens of time too
- jonwinstanley 5y agoHaha yes it keeps going round and round
- artembugara 5y agoI've heard it's been used a lot by the MOVA developers
- duxup 5y agoI 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.
- _jal 5y agoA less humorous unusual status code is 451. Unfortunately, it probably should be used more. https://en.wikipedia.org/wiki/HTTP_451 https://en.wikipedia.org/wiki/HTTP_451
- duxup 5y agoI think that would get attention, although I wouldn't want there to be panic ;)
- norrius 5y agoI come from a country with rather _interesting_ views on what should be allowed online. 451 is used often enough that I've seen it in the wild more than once (and consider yourself lucky if you haven't encountered it...).
- mrweasel 5y agoI get those every so often from US websites that doesn't want to deal with the GDPR.
- da_chicken 5y agoThat suggests that there are websites anywhere that do want to deal with GDPR, which seems rather unlikely.
- Doxin 5y agoOf course there's a lot of people who would prefer to ignore laws. That doesn't make GDPR an especially bad one.
- coding123 5y agoI can't remember but didn't some company try to implement this for an actual connected tea pot?
- kzrdude 5y agoIt'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.
- jimmaswell 5y agoI 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.
- treeman79 5y agoGood 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.
- ableal 5y agoA 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 ...)
- snowwrestler 5y agoThere are usually buttons next to pump screens and one will mute the sound. Just push them one by one.
- arbitrage 5y agothe manufacturers caught on to that specific mitigation, and it doesn't work that often in the wild anymore.
- enahs-sf 5y agoReminds me of the twitter "Enhance Your Calm" 420 status code in lieu of 429.
- stblack 5y agoSupport 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.
- hirsin 5y agoHm, 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.
- achillean 5y agoThere are a few thousand web servers that return this status code for their main page :) https://www.shodan.io/search/report?query=http.status%3A418&title=I%27m%20a%20teapot https://www.shodan.io/search/report?query=http.status%3A418&...
- polarhive 5y agohttps://http.cat/418 https://http.cat/418
- rspoerri 5y agoi wonder how this is handled in vr browsers?
- arcanist_union 5y agoIs this the first 'IoT' spec ever? :)
- kevwil 5y agoI guess it's been about a generation since I implemented this as an easter-egg in a RESTful API service I built. It was quite the joke then, but now with IoT "smart" teapots and whatnot being so popular, it's not so funny now.
- vincentpants 5y agoCame to mention this. It really was a fantastic joke. May it rest in peace. pours one out
- andrethegiant 5y agoMy favorite part is that the response body can optionally include "short and stout".
- schnable 5y agoIt's all fun and games until some clever developer uses this error code in a production system and the client developer or SRE folks have no idea what it means. Have also seen error code 420 used this way.
- spc476 5y agoI was counting on that when I added status 418 to my gopher server. It shut a particular web bot right up when I did that.
- lordalch 5y agoI'm personally of the opinion that 418 shouldn't be considered a joke response, but would actually useful as 418 "Unsupported Device". What response should a printer give if you asked it to send a fax, but you have a base-model printer that doesn't support sending faxes. From the perspective of the printer, I know what you want (i.e. not a 404) and you've asked for it correctly (i.e. not 400 or 401 or 403), but I can't do it, and this does not indicate an error on my part (not a 500 or 503). Thus, 418: Unsupported Device. Perhaps this too much of an overlap with 404 (I don't have that resource) and 501 (I can't do that verb to that resource), which I assume is why there's not a huge need for it. But if we're going to have 418 exist and receive browser support anyway, it might as well have a useful meaning rather than just exist as a joke. This interpretation is fully in keeping with the non-joke meaning of the original RFC, as a teapot is a device that does not support brewing coffee.
- Nashooo 5y agoIt's complete overlap with 404 IMO
- deleted 5y ago[deleted]
- hnarn 5y agoIf you throw a 404 to a completely valid GET for a file that doesn't exist for example, how is that a "complete overlap" to something like asking a database REST API to print a PDF? In the latter case, you have the ability to give a more detailed (better) error message, so why shouldn't you?
- jlund-molfese 5y agoI'd probably use a 422 in that case. I think 422 errors are underused, and can good for communicating errors when a client requests something which doesn't make sense from a business context.
- hnarn 5y agoFor those that haven't memorized every single HTTP error code, 422 is "Unprocessable Entity": 'the server understands the content type of the request entity, and the syntax of the request entity is correct, but it was unable to process the contained instructions.'
- J5892 5y agoWould it be valid for an actual IoT teapot to return this instead of a 200 for a valid request?
- remedan 5y agoIt's an error code. It should be returned by a tea pot as a response to a request for coffee.
- jtsiskin 5y agoI really hope this is used by https://cosori.com/products/smart-electric-gooseneck-kettle-cs108-nk https://cosori.com/products/smart-electric-gooseneck-kettle-...
- whckt 5y agoA fun one I found out a while back is that Twitter used 420 Enhance Your Calm instead of 429 Too Many Requests to rate limit.
- paulkrush 5y agoThere is a "418 – I'm a teapot" book too (by Edgar Scott). I highly recommend it for dystopian hard sci-fi lovers.
- yabones 5y agoFor full standards compliance, the teapot should be designed and implemented according to the ISO-3103:2019 specification. https://en.wikipedia.org/wiki/ISO_3103 https://en.wikipedia.org/wiki/ISO_3103 https://www.iso.org/standard/73224.html https://www.iso.org/standard/73224.html
- orionblastar 5y agoRussel's Teapot?