TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

HTTP 418: I'm a Teapot

36 点作者 c0restraint超过 5 年前

4 条评论

geuis超过 5 年前
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 未加载
halfdan超过 5 年前
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.
peteforde超过 5 年前
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 未加载
plapetomain超过 5 年前
Always thought it cute that the spec mandates 4 allowable alcohol additions... but also completely forgot to specify the list of sweeteners.