top | item 44589959

(no title)

Tcepsa | 7 months ago

Maybe it's spite-driven development, but I'd love to hear about someone who, upon learning that LLMs are suggesting endpoints in their API that don't exist, implements them specifically to respond with a status code[0] of "421: Misdirected Request". Or, for something less snarky and more in keeping with the actual intent of the code, "501: Not Implemented". If the potentially-implied "but it might be, later" of 501 is untenable, I humbly propose this new code: "513: Your Coding Assistant Is Wrong"

[0]: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes

discuss

order

Bluestein|7 months ago

> "513: Your Coding Assistant Is Wrong"

You made me chuckle. Well played. Great stuff :)

May I, simply, also suggest:

HTTP 407 Hallucination

Meaning: The server understands the request but believes it to be incongruous with reality.-

LiKao|7 months ago

Yes, it should definitely be in the 400 space of HTML error codes. As 400 -> "You are incorrect" while 500 -> "We messed up".

snthpy|7 months ago

+1 for 513: Your Coding Assistant Is Wrong"

If we have 418, why not 513?

hi_hi|7 months ago

I humbly request, if you are going to do this, please, please...use the 418 response. It deserves wider adoption :-)

Dilettante_|7 months ago

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.

latentsea|7 months ago

I think it's a good representation of a hallucination.

Bluestein|7 months ago

(on that note, I'm putting the kettle on :)