The server does not support the major HTTP version used in the request.
505 HTTP Version Not Supported means the server refuses the protocol version in the request line. It is rare because clients and servers negotiate versions (ALPN for HTTP/2 and 3). When it happens it usually means a malformed request line that the server parsed as an unknown version.
HTTP/1.1 505 HTTP Version Not Supported
Content-Type: text/plain
Only HTTP/1.0 and HTTP/1.1 are supported