505 HTTP Version Not Supported

The server does not support the major HTTP version used in the request.

Status

HTTP/1.1 505 HTTP Version Not Supported

Details

505 rejects the protocol version on the request line. It is rare, because version negotiation normally happens before this point: HTTP/2 is selected during the TLS handshake via ALPN, and HTTP/1.1 is universally supported.

In practice it shows up with hand-written HTTP clients that send a malformed version token, and occasionally with servers configured to refuse HTTP/1.0.

Common causes

How to fix it

As the client

As the server

Examples

GET / HTTP/3.5
Host: www.example.com

HTTP/1.1 505 HTTP Version Not Supported

Specifications

RFC 9110 §15.6.6

See also