Skip to content

505 HTTP Version Not Supported (HTTP Status Code 505)

Updated: at 09:12 AM

The HTTP 505 (HTTP Version Not Supported) status code indicates that the server does not support the HTTP protocol version used in the request.

Key Meaning

Occurrence Scenarios

Common HTTP Versions:

Sample response:

HTTP/1.1 505 HTTP Version Not Supported
Content-Type: text/html
Content-Length: 172

<html>
<head>
    <title>505 HTTP Version Not Supported</title>
</head>
<body>
    <h1>HTTP Version Not Supported</h1>
    <p>The server does not support the HTTP protocol version used in the request.</p>
</body>
</html>

Solutions For Server Administrators:

Solutions For Client Developers:

Apache Configuration Example:

<IfModule mod_rewrite.c>
    RewriteEngine On
    # Restrictions only allow HTTP/1.1 HTTP/2
    RewriteCond %{THE_REQUEST} !HTTP/1\.1$
    RewriteCond %{THE_REQUEST} !HTTP/2\.0$
    RewriteRule .* - [F]
</IfModule>

Preventive Measures:

Best Practices:

This error is often caused by server configuration issues or the client using an incompatible HTTP version, and it needs to be resolved from the perspective of protocol compatibility.