505 HTTP Version Not Supported는 요청에 사용된 HTTP 주 버전을 서버가 지원하지 않는다는 뜻입니다. 클라이언트가 서버가 처리할 수 없는 HTTP 버전으로 요청 라인을 구성했을 때 발생합니다.
실무에서는 매우 드물게 보이는 코드입니다. 정상적인 브라우저와 클라이언트는 서버와 지원 버전을 협상하기 때문에, 대개 잘못 만든 저수준 클라이언트나 버전 문자열이 깨진 요청에서만 나타납니다.
GET / HTTP/3.5
Host: example.comHTTP/1.1 505 HTTP Version Not Supported
Content-Type: text/plain
The server does not support HTTP version 3.5.# Pin to HTTP/1.1 (or --http2) if the server rejects the negotiated version
curl --http1.1 -i https://example.com/# Offer HTTP/2 so clients can negotiate a supported version
server {
listen 443 ssl;
http2 on;
}