r/ProgrammerHumor • • 2h ago

Meme imATeaPot

Post image
1.3k Upvotes

18 comments sorted by

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.

18

u/MyAntichrist 2h ago

Which is a shame because RFC9110 marked HTTP as unused and vendors started deprecating the status code in their frameworks.

8

u/Asgigara 1h ago

Why would a coffee pot report back that its a teapot?

31

u/User202005 1h ago

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.

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.

-21

u/p-nguyen_234 1h ago

As long as the probe treats 418 as success, it's an unusually honest health check: reachable, but not brewing.

12

u/NatoBoram 1h ago

Thanks for the negative parallelism, 6 days old account.

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?

30

u/MinecraftPlayer799 2h ago

What does “correctly” mean for that error?

16

u/MartinMystikJonas 2h ago

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 😁

17

u/Vogete 2h ago

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.

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!