HTTP 505 HTTP Version Not Supported
HTTP 505 HTTP Version Not Supported means the server does not support the HTTP protocol version used in the request. It is rare today and usually caused by…
Quick answer
HTTP 505 HTTP Version Not Supported means the server does not support the HTTP protocol version used in the request. It is rare today and usually caused by malformed request lines, such as spaces in the URL, which make the version look invalid.
Last updated · Maintained by FreeAIToolz · How we test
What does HTTP 505 HTTP Version Not Supported mean?
Real version mismatches are uncommon because servers support HTTP/1.1 and negotiate HTTP/2 or 3 separately. A space or illegal character in the request path can make the server misread the version field.
| Status code | 505 |
|---|---|
| Name | HTTP Version Not Supported |
| Class | 5xx Server Error |
| Defined in | RFC 9110 §15.6.6 |
| Cacheable by default | No, unless Cache-Control says so |
| Safe to retry automatically? | No: change the request first |
What causes HTTP 505?
- Unencoded spaces or characters in the URL path of a raw request.
- A very old or custom client sending an unsupported version.
How do I fix HTTP 505?
- URL-encode paths (spaces as %20).
- Use a standard HTTP client library.
What should a client do after HTTP 505?
Fix the request line or use HTTP/1.1.
Does HTTP 505 affect SEO?
No practical SEO impact.
Example 505 response
HTTP/1.1 505 HTTP Version Not Supported
Date: Mon, 01 Dec 2026 12:00:00 GMT
Content-Type: application/json
{"error":{"status":505,"message":"HTTP Version Not Supported"}} How to return 505 HTTP Version Not Supported in code
Express (Node.js)
res.status(505).json({ error: 'HTTP Version Not Supported' }); Next.js route handler
return Response.json({ error: 'HTTP Version Not Supported' }, { status: 505 }); FastAPI (Python)
raise HTTPException(status_code=505, detail="HTTP Version Not Supported") PHP
http_response_code(505); Nginx
location = /example {
return 505;
} Other 5xx status codes
The server failed to fulfil a valid request. Retrying later, with backoff, is usually reasonable.
- 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
Frequently asked questions
Why do I get 505 from my script?
Does 505 relate to HTTP/2?
Is 505 a client or server error?
Related
- 400 Bad Request HTTP 400 Bad Request means the server cannot process the request because of a client error, such as malformed .
- 426 Upgrade Required HTTP 426 Upgrade Required means the server refuses the request over the current protocol and requires the clie.
- 501 Not Implemented HTTP 501 Not Implemented means the server does not support the functionality needed to fulfil the request, mos.
- Open the HTTP Status Codes Reference → Free, no signup.