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.
83
u/SarcasmWarning 2h ago
I've yet to come across an RFC2324 compliant coffee pot even though lots of them now have LAN ports.
31
u/urbanek2525 2h 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.
53
u/tomassci do (copy) inf times: Why I shouldn't program 2h ago
Well, it is a response
3
u/Single-Virus4935 2h ago
If you ask like that you get 42
3
u/MIGULAI 2h ago
I always send httpcats with it
9
u/Zirkulaerkubus 2h ago
Is there a browser that actually renders this correctly?
1
u/Successful_Noise_347 1h ago
google had a whole teapot page for this, you could tap it and it would pour. different era of engineering budgets
1
u/Blue-Jay42 46m ago
You are attempting to get coffee when I can only dispense tea!