HTTP Codes
Which code do I return?

505 HTTP Version Not Supported

We don't speak that version.

What it properly means

The HTTP version used in the request is not supported by the server.

Class
5xx Server error: we fucked up
Defined in
RFC 9110, section 15.6.6

Get one yourself

This endpoint really answers with 505. Point your client at it and see what it does.

curl -i https://httpcodes.dev/api/505
Previous: 504 Gateway Timeout All codes Next: 506 Variant Also Negotiates

Proper meanings paraphrased from MDN and RFC 9110. The swearing is ours. Source on GitHub.