What it means
The server doesn't support, or refuses to support, the major HTTP version used in the request.
Why you're seeing it
- A client speaking a version the server or proxy can't handle.
- A malformed request line that the server reads as an unknown version.
How to fix it
- Let the client fall back to HTTP/1.1, e.g.
curl --http1.1. - Check for spaces or stray characters in the request path, which can break the request line.
Example response
HTTP/1.1 505 HTTP Version Not Supported Content-Length: 0