TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

I’m A Teapot – HTTP status code 418

153 pointsby giladalmost 5 years ago

29 comments

non-nilalmost 5 years ago
People, please! If encountering a 418, consider adhering to ISO 3103: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;ISO_3103" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;ISO_3103</a>
评论 #24208482 未加载
评论 #24208343 未加载
评论 #24208526 未加载
评论 #24207976 未加载
评论 #24208225 未加载
_zzawalmost 5 years ago
I had an issue a little while ago where I was trying to get iOS&#x27;s Shortcuts app to post to WordPress. I noticed that doing this seemed to crash every one of my websites within seconds. It was like flicking a switch: I’d run the Shortcuts workflow and seconds later, all of my sites appeared to be offline. This lasted for precisely one hour, after which everything came back online.<p>Didn&#x27;t take long to figure out that the sites had actually been online the whole time for everyone else; they were only inaccessible from my local network. At that point, I contacted my host, and they explained that the WordPress component of the Shortcuts app was, for some reason, bombarding the server with a whole lot of requests for files that didn’t exist. The server thought it was under attack and blocked my whole network. Then it got interesting: the guy said that the server was throwing 418s.<p>I thought he might be mistaken at first. I actually recognized 418, since I&#x27;ve known about the teapot thing for a little while. I asked the guy if it was really the case that the server was blocking my network because it thought my phone was making too many demands for coffee it wasn&#x27;t capable of producing, and he said that, well, other than the coffee bit, DreamHost really does use 418 for that situation: <a href="https:&#x2F;&#x2F;help.dreamhost.com&#x2F;hc&#x2F;en-us&#x2F;articles&#x2F;215947927-How-do-I-enable-Extra-Web-Security-for-my-website-" rel="nofollow">https:&#x2F;&#x2F;help.dreamhost.com&#x2F;hc&#x2F;en-us&#x2F;articles&#x2F;215947927-How-d...</a><p>That is the only time I&#x27;ve encountered 418 in the wild. That decision seems to be pretty consistent with DreamHost&#x27;s sense of humor.<p>(They did, as usual, manage to fix my problem.)
评论 #24208635 未加载
评论 #24207875 未加载
darkhelmetalmost 5 years ago
I added panic(&quot;I&#x27;m a teapot!&quot;); to the FreeBSD kernel, many many years ago (sys&#x2F;kern&#x2F;kern_thread.c). It was for an impossible, cannot-happen scenario.<p>Much to my astonishment&#x2F;amusement, it did.
评论 #24207431 未加载
评论 #24207404 未加载
评论 #24210024 未加载
评论 #24208631 未加载
评论 #24207445 未加载
eastdakotaalmost 5 years ago
At Cloudflare’s SF office, the conference rooms are all numbered after HTTP status codes. Our Board Room is 404. The coffee shop (Cafe Lambretta) in our building, at the corner of 2nd &amp; Townsend, is bookable in our calendar system as Room 418.
评论 #24208420 未加载
评论 #24208777 未加载
评论 #24208100 未加载
snickyalmost 5 years ago
We return 418 on our site in case an admin tries to access the admin panel without a required VPN. It actually clicked pretty fast with everybody on the team, especially those less tech-savvy. They know the &quot;teapot issue&quot; means they forgot to turn on the VPN. It&#x27;s less confusing than 401&#x2F;403 :)
评论 #24207486 未加载
评论 #24207804 未加载
pwdisswordfish4almost 5 years ago
418 is actually unassigned.<p><a href="https:&#x2F;&#x2F;www.iana.org&#x2F;assignments&#x2F;http-status-codes&#x2F;http-status-codes.xhtml" rel="nofollow">https:&#x2F;&#x2F;www.iana.org&#x2F;assignments&#x2F;http-status-codes&#x2F;http-stat...</a><p>This code has never been officially registered, especially not by that April Fools’ RFC. A number of HTTP implementations added it to their lists of codes anyway; there was a concern that it might create a conflict with if an actual meaning is assigned by the HTTP specification. One of the authors of the specification went around asking libraries to remove the code for this reason. Web developers, like the mature people they are, bullied him into abandoning it.<p>By the way, if one actually wanted to control coffee pots over HTTP, 400 Bad Request would have been entirely sufficient for this situation. This code has been superfluous from the start. Ironically, it became the very thing it was meant to satirise.
评论 #24207662 未加载
评论 #24209003 未加载
评论 #24208296 未加载
评论 #24207680 未加载
andrewflnralmost 5 years ago
Also recommended: <a href="https:&#x2F;&#x2F;http.cat&#x2F;" rel="nofollow">https:&#x2F;&#x2F;http.cat&#x2F;</a>, particularly <a href="https:&#x2F;&#x2F;http.cat&#x2F;418" rel="nofollow">https:&#x2F;&#x2F;http.cat&#x2F;418</a>
评论 #24207914 未加载
评论 #24207330 未加载
chrismorganalmost 5 years ago
Some further relevant history:<p>There’s an official registry of status codes: <a href="https:&#x2F;&#x2F;www.iana.org&#x2F;assignments&#x2F;http-status-codes&#x2F;http-status-codes.xhtml" rel="nofollow">https:&#x2F;&#x2F;www.iana.org&#x2F;assignments&#x2F;http-status-codes&#x2F;http-stat...</a>.<p>HTTP libraries normally use this as their canonical source of status codes that they should have constants (or whatever) defined for.<p>But <i>418 I&#x27;m a teapot</i> is not in that registry. It’s not clear to me why it wasn’t put in when the registry was established, but it seems most likely that someone made an executive judgement against pointless fun.<p>To my knowledge, it’s the only status code from an RFC that has not made it into the registry. So many HTTP libraries, perhaps most, have this one exception, an extra status code not from the registry.<p>In 2017, the httpbis working group chairman Mark Nottingham (mnot) sought to get 418 removed from libraries everywhere (since it wasn’t registered and wasn’t serious); this met with popular resistance (people like their fun) and so he changed direction and sought to have 418 registered properly instead, with <a href="https:&#x2F;&#x2F;datatracker.ietf.org&#x2F;doc&#x2F;draft-nottingham-thanks-larry&#x2F;" rel="nofollow">https:&#x2F;&#x2F;datatracker.ietf.org&#x2F;doc&#x2F;draft-nottingham-thanks-lar...</a>. But that draft was allowed to expire and I’m not sure why.
评论 #24214083 未加载
评论 #24207820 未加载
评论 #24207973 未加载
评论 #24208510 未加载
CobrastanJorjialmost 5 years ago
If you encounter problems with HTTP 418, you should consider implementing RFC 7168 - The Hyper Text Coffee Pot Control Protocol for Tea Efflux Appliances (HTCPCP-TEA). <a href="https:&#x2F;&#x2F;tools.ietf.org&#x2F;html&#x2F;rfc7168" rel="nofollow">https:&#x2F;&#x2F;tools.ietf.org&#x2F;html&#x2F;rfc7168</a>
评论 #24207720 未加载
matmann2001almost 5 years ago
My school had a class called CS 418 Computer Graphics. One of the final projects was to render a scene reflected off the surface of a teapot STL. I often pondered on the coincidence.
评论 #24207516 未加载
评论 #24207657 未加载
opportunealmost 5 years ago
I guess the 2020 version of this status code would be &quot;Sir, this is a Wendy&#x27;s&quot;
评论 #24207462 未加载
评论 #24209418 未加载
ggghhhfffalmost 5 years ago
Useful for when you get requests to brew coffee on your smart teapot
konartalmost 5 years ago
I had a project were in case of a 400 errors 418 error would be used.
评论 #24207931 未加载
ishchekleinalmost 5 years ago
&quot;HTCPCP was an April 1 joke by Larry to illustrate how people were abusing HTTP in various ways. Ironically, it&#x27;s not being used to abuse HTTP itself -- people are implementing parts of HTCPCP in their HTTP stacks.&quot; - <a href="https:&#x2F;&#x2F;tools.ietf.org&#x2F;html&#x2F;rfc2324" rel="nofollow">https:&#x2F;&#x2F;tools.ietf.org&#x2F;html&#x2F;rfc2324</a>
outworlderalmost 5 years ago
I had a coworker who found about 418, found this hilarious and started returning this in case of error.<p>It made for an interesting troubleshooting session, because at the time, not all browsers would display a meaningful result. Some would return a blank screen - which is easy to find. But not as easy when it was a single call among many others in the page...
G4BB3Ralmost 5 years ago
Some time ago after realising how GraphQL (don&#x27;t) use http code, I decided that I wouldn&#x27;t use http code for business logic like everybody does, but let that responsibility only to the webserver (not auth 401, not found 404, exception 500, and few others). Is that absurd? Should I reconsider going back?
评论 #24208164 未加载
dade_almost 5 years ago
418 - The status code for a passionate debate! It’s a joke, it’s wrong, it’s funny, it’s right. And finally, oh dear, we need to have a chat about how you prepare your tea. Discussions on the famous 200, 404 and 500 are usually only lukewarm, though 488 stories can get racy.
walrus01almost 5 years ago
I&#x27;m sure you can run Apache or nginx on the pi zero w on this and communicate with a walking robotic teapot.<p><a href="https:&#x2F;&#x2F;www.raspberrypi.org&#x2F;blog&#x2F;robotic-teapot&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.raspberrypi.org&#x2F;blog&#x2F;robotic-teapot&#x2F;</a>
评论 #24207451 未加载
评论 #24207798 未加载
kristopheralmost 5 years ago
Obligatory Google Teapot:<p><a href="https:&#x2F;&#x2F;www.google.com&#x2F;teapot" rel="nofollow">https:&#x2F;&#x2F;www.google.com&#x2F;teapot</a>
cikalmost 5 years ago
For Zarquon&#x27;s sake, the least they could have done is listened to him about tea <a href="https:&#x2F;&#x2F;hitchhikers.fandom.com&#x2F;wiki&#x2F;Tea" rel="nofollow">https:&#x2F;&#x2F;hitchhikers.fandom.com&#x2F;wiki&#x2F;Tea</a>.
nineteen999almost 5 years ago
As more of a graphics guy than a HTTP guy, I immediately though of the Utah Teapot.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Utah_teapot" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Utah_teapot</a>
achilleanalmost 5 years ago
A bit more than 5000 web servers return HTTP 418 :)<p><a href="https:&#x2F;&#x2F;beta.shodan.io&#x2F;search?query=http.status%3A418" rel="nofollow">https:&#x2F;&#x2F;beta.shodan.io&#x2F;search?query=http.status%3A418</a>
mlang23almost 5 years ago
This reminds me of Hurds EIEIO<p><a href="https:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;hurd&#x2F;faq&#x2F;eieio.html" rel="nofollow">https:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;hurd&#x2F;faq&#x2F;eieio.html</a>
评论 #24210192 未加载
pacamara619almost 5 years ago
718 - I am not a teapot<p><a href="https:&#x2F;&#x2F;github.com&#x2F;joho&#x2F;7XX-rfc&#x2F;pull&#x2F;180" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;joho&#x2F;7XX-rfc&#x2F;pull&#x2F;180</a>
评论 #24217786 未加载
mvipalmost 5 years ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;vpetersson&#x2F;im-a-teapot" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vpetersson&#x2F;im-a-teapot</a>
fdisottoalmost 5 years ago
We use it in our product <a href="https:&#x2F;&#x2F;punterz.club&#x2F;" rel="nofollow">https:&#x2F;&#x2F;punterz.club&#x2F;</a> just for fun :)
评论 #24208427 未加载
brailsafealmost 5 years ago
More work was put in for this joke than I&#x27;ve literally put into any development related thing all summer. I like it.
remuxalmost 5 years ago
On my licence plate I have the number 418 :D
ed25519FUUUalmost 5 years ago
Please if you’re reading this, don’t add this status code and don’t suffer anyone to add this to your code either. It’s not funny, and it’s not clever. Please don’t do it. Find another way to be clever and funny.
评论 #24207755 未加载
评论 #24210330 未加载
评论 #24207733 未加载
评论 #24208045 未加载
评论 #24208410 未加载