Hacker News new | ask | show | jobs
by hi_hi 330 days ago
I humbly request, if you are going to do this, please, please...use the 418 response. It deserves wider adoption :-)
3 comments

Bit of a pet peeve: 418 is clearly defined as "I am a teapot", not "whatever I want it to mean".

Please do not use it for anything other than its specified purpose, even if it is a joke.

If an LLM can hallucinate an endpoint, then the server is allowed to hallucinate being a teapot :)
Is one being a little precious about one being a teapot!?
Are you a teapot? If you were, maybe you'd be precious about people falsely claiming to be one too!
It's really more about how when I say "I am a teapot", I want people to think "Oh, he's a teapot!" and not "He might be a teapot, or he might be chiding me for misusing llms or he might be signaling that the monkey is out of bananas or [...]"
I agree, though that means I really should stop returning my 404 - Server Unavailable response, but you'll never have my 500 - OK.
What would be an appropriate response code for "He might be a teapot, or he might be chiding me for misusing llms or he might be signaling that the monkey is out of bananas or [...]"?
Each of those should have a clear, unique response code. There should be no "maybe it's this, maybe it's that". A real-world example is login forms that tell you something like "Invalid e-mail or password".

Are you joking around with me or is my point just not as obvious as I believed it to be?

Edit: Not sure if that last bit sounds confrontational, please know that it's a genuine question.

I think it's a good representation of a hallucination.
(on that note, I'm putting the kettle on :)