DevToolsmith

HTTP 505 HTTP Version Not Supported

HTTP 505 HTTP Version Not Supported means the server doesn’t support the HTTP version used in the request. The server failed to fulfil a valid request. The problem is on the server side.

Class
5xx Server error
Standard
RFC 9110
Cacheable by default
No
Safe to retry
Rarely
Go constant
http.StatusHTTPVersionNotSupported

What HTTP 505 means

Rare in practice. It can appear when a client sends a malformed request line, such as a URL with unencoded spaces, so the server misreads the version part.

How to fix a 505 error

  • URL-encode spaces as %20 in request paths.

Retrying

Rarely. The server can’t handle this request, so retrying it unchanged is unlikely to help.

Example response

HTTP/1.1 505 HTTP Version Not Supported
Date: Wed, 21 Oct 2026 10:30:00 GMT
Content-Type: application/json

How to return 505

Node.js (Express)
res.status(505).json({ error: 'HTTP Version Not Supported' });
Python (FastAPI)
from fastapi import HTTPException

raise HTTPException(status_code=505, detail="HTTP Version Not Supported")
Go (net/http)
http.Error(w, http.StatusText(http.StatusHTTPVersionNotSupported), http.StatusHTTPVersionNotSupported)
nginx
location /private/ {
    return 505;
}

Related status codes

Other 5xx status codes

500 Internal Server Error · 501 Not Implemented · 502 Bad Gateway · 503 Service Unavailable · 504 Gateway Timeout · 507 Insufficient Storage · 508 Loop Detected · 511 Network Authentication Required · 520 Web Server Returned an Unknown Error · 521 Web Server Is Down · 522 Connection Timed Out · 523 Origin Is Unreachable · 524 A Timeout Occurred · 525 SSL Handshake Failed · 526 Invalid SSL Certificate

See the full list of HTTP status codes.

Sources

Spotted a mistake? Email hello@devtoolsmith.com and we’ll fix it.

Frequently asked questions

What does HTTP 505 HTTP Version Not Supported mean?

HTTP 505 HTTP Version Not Supported means the server doesn’t support the HTTP version used in the request. Rare in practice. It can appear when a client sends a malformed request line, such as a URL with unencoded spaces, so the server misreads the version part.

How do I fix HTTP 505?

URL-encode spaces as %20 in request paths.