Re:[418] I'm a Teapot
by AmericanChopper on Friday May 26, 2023 @09:25PM
(#36091239)
Stupid reason imo. Adding childish humor to a protocol seems like harmless fun until you remember how much of a mess network protocols, and their specs, and their implementation is. Maybe you think a 418 error page is funny, but I think you’ll appreciate it a lot less when your application gets a rather confounding error because some service provider wanted to remind you that the underlying processes of computers are still made by humans, rather than implement the actually correct response.
/me slaps AmericanChopper around a bit with a large trout
Re:[418] I'm a Teapot
by throwaway173738 on Saturday May 27, 2023 @12:35AM
(#36092098)
That’s trout abuse.
I thought it was handling fish under discuss m suspicious circumstances.
It's (presumably) more humane than whipping some llama ass.
Re:[418] I'm a Teapot
by kQq9oHeAz6wLLS on Saturday May 27, 2023 @12:31AM
(#36092081)
...
Nope, it's still funny, we're keeping it.
Re:[418] I'm a Teapot
by pwdisswordfishc on Saturday May 27, 2023 @03:20AM
(#36092733)
Nope, it’s still unfunny, it should have been deleted then and there. In fact, it has.
Re:[418] I'm a Teapot
by AmericanChopper on Saturday May 27, 2023 @03:46AM
(#36092836)
I promise that knowing it’s supposed to be a joke is _not_ going to make you less frustrated if you ever end up having to debug a non-descriptive 418 error. To make it worse the description and the error code aren’t even consistent. 4xx is a client error, but your web server being a teapot is definitely a server side problem.
No, it should be a client error. The error is intended to be returned when a client has asked a teapot to perform a coffeepot-only operation - which is obviously a mistake on the client side.
This makes it similar to 405 Method Not Allowed, 406 Not Acceptable, or 426 Upgrade Required.
Re:[418] I'm a Teapot
by AmericanChopper on Saturday May 27, 2023 @05:54PM
(#36098740)
Sure, but I’ve actually had to debug a few 418 errors on production workloads, and none of them involved teapot services. Knowing that the implementers of the error thought it was a hilarious joke certainly didn’t make the experience more fun.
Re:[418] I'm a Teapot
by hypertele-Xii on Saturday May 27, 2023 @04:21AM
(#36092987)
No, it's a great canary in the coal mine. Anyone who doesn't implement proper handling of 418 gets their general error handling facilities tested (4xx).
Re:[418] I'm a Teapot
by AmericanChopper on Saturday May 27, 2023 @05:43AM
(#36093345)
What is the correct way to handle a 418? As if it were a 500? A 400? A 403? A 404? A 429?…
Re:[418] I'm a Teapot
by hypertele-Xii on Sunday May 28, 2023 @11:17AM
(#36104750)
418 is a class 4xx error, which means the client erred and shouldn't repeat the request as-is. That is, any unrecognized error beginning with a 4 must be handled as if it were the base error class, 400, "Bad Request".
> the server cannot or will not process the request due to something that is perceived to be a client error (for example, malformed request syntax, invalid request message framing, or deceptive request routing).
> “It's a reminder that the underlying processes of computers are still made by humans”