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.

HTTP 418: I'm a Teapot

36 pointsby c0restraintover 5 years ago

4 comments

geuisover 5 years ago
Somewhat personally funny story.<p>Some number of years ago I saw a huge traffic spike on <a href="https:&#x2F;&#x2F;jsonip.com" rel="nofollow">https:&#x2F;&#x2F;jsonip.com</a>. After investigating, I saw that someone who seemed to have a misconfigured squid proxy that wasn’t valid IP data was hitting the api hundreds of times a minute.<p>The scale of jsonip was a lot smaller back then and still just a personal project but the requests were significantly crushing the server in addition to regular traffic.<p>As a mild joke, I updated the code to return “418 You are a teapot” for the squid proxy briefly. Just long enough for the user to be “wth” and investigate so they’d update their configuration. I just targeted the obviously malformed requests.<p>Within a day or so the proxy either stopped making requests or got fixed.<p>I got a laugh out of it and removed that code. Hopefully the person on the other end also got the joke.
评论 #22221279 未加载
halfdanover 5 years ago
Ah yes, the Hyper Text Coffee Pot Control Protocol.<p><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><p>Back in the day I really wanted to build an ethernet ready and HTCPCP compliant coffee machine. Never got around to it, but in the days of Pi Zero and similar hardware it&#x27;s not as of complicated anymore.
petefordeover 5 years ago
Honestly, this has been posted about so many times that the only way this shouldn&#x27;t be flagged as a dupe is if you show us photographs of an actual teapot that implements this response.
评论 #22215812 未加载
评论 #22215770 未加载
评论 #22221276 未加载
评论 #22221988 未加载
plapetomainover 5 years ago
Always thought it cute that the spec mandates 4 allowable alcohol additions... but also completely forgot to specify the list of sweeteners.