From Google: RFC 2324 defines the Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0), an April Fools' Day RFC published on April 1, 1998, by Larry Masinter as a satirical protocol for controlling, monitoring, and diagnosing coffee pots over HTTP. Its most famous legacy is HTTP status code 418 I'm a teapot, which a server returns when asked to brew coffee with a teapot.
I use 418 as the response code for a connectivity test for most of my REST services I've ever deployed. Mostly.as a joke, but at least once that unusual but legal response code has come in handy.
418 is rendered same way as any other error response by browsers. We actually use it as response for maliciour requests (like secret scanning) because some dumber automated scanners gets all confused by it 😁
What do you mean? It's an http response, there's nothing to render. Every browser will correctly display in the dev tools that the http responded with 418 but whatever is rendered on the viewport is still up to the site, and not the browser.
63
u/SarcasmWarning 1h ago
I've yet to come across an RFC2324 compliant coffee pot even though lots of them now have LAN ports.
52
u/tomassci do (copy) inf times: Why I shouldn't program 1h ago
Well, it is a response
20
u/urbanek2525 1h ago
I use 418 as the response code for a connectivity test for most of my REST services I've ever deployed. Mostly.as a joke, but at least once that unusual but legal response code has come in handy.
3
u/Single-Virus4935 1h ago
If you ask like that you get 42
10
u/Zirkulaerkubus 1h ago
Is there a browser that actually renders this correctly?
2
u/MIGULAI 1h ago
I always send httpcats with it
1
u/Successful_Noise_347 29m ago
google had a whole teapot page for this, you could tap it and it would pour. different era of engineering budgets
•
u/Blue-Jay42 8m ago
You are attempting to get coffee when I can only dispense tea!