Skip to content
Back to blog

505 Error: What It Means, Causes, and How to Fix It

Table of contents

Key takeaways:

  • A server returns the HTTP 505 error when it does not support the HTTP protocol version used in the request.
  • To resolve the HTTP 505 error, try a different browser or network and turn off proxies, or check the HTTP version your client sends.
  • System administrators should verify that reverse proxies forward the correct HTTP version to the origin server.

A 505 status code occurs when a server refuses to process a request because it does not support the requested HTTP version.

Badly formatted request lines are a common cause, as they can make the server misread the HTTP version entirely. The HTTP 505 error also appears when a client, like a script or a proxy, sends a version the server does not accept, such as HTTP/2.0 in a plain-text request line.

In complex network setups, intermediaries like load balancers or proxies can trigger the HTTP 505 error by altering or dropping the HTTP version information before the request reaches the server.

What is an HTTP 505 error?

A server returns a 505 HTTP Version Not Supported error when a client, such as a web browser, script, or proxy, tries to communicate using a major HTTP protocol version the server does not support.

While the server receives the request, it refuses to process the data because of the version mismatch. Instead of loading the requested webpage, the server sends back a 505 status code.

The browser then displays an error page explaining that the HTTP version is unsupported. Here is how an Nginx server answers a request that puts HTTP/2.0 in a plain-text request line:

GET / HTTP/2.0
Host: example.com
 
HTTP/1.1 505 HTTP Version Not Supported
Server: nginx
Content-Type: text/html; charset=utf-8

What causes a 505 error?

Unsupported HTTP versions

A 505 error concerns the major HTTP protocol version, the first digit in HTTP/1.1. Web servers such as Nginx and Apache still accept HTTP/1.0 requests, so an outdated browser is rarely the cause. The error is more likely when a client sends a newer major version, such as HTTP/2.0 in a plain-text request line, which Nginx rejects with a 505 status code.

Malformed HTTP requests

A poorly written script or automated tool might format the HTTP request line incorrectly. For example, an unencoded space in the URL can cause the web server to read part of the path as the version number and throw the HTTP 505 error. Many servers, including Nginx and Apache, return a 400 Bad Request for the same mistake instead.

Server configuration issues

Administrators might accidentally apply configurations that restrict valid HTTP versions during regular maintenance. Upgrades to core server software can also overwrite custom settings, which leaves the system unable to process standard requests.

Proxy and load balancer issues

Web traffic often passes through load balancers and proxies. If one of them mishandles the request line, for example by decoding an encoded space in the URL, the server behind it can misread the version and return an HTTP 505 error to the user. An AWS Application Load Balancer also returns a 505 when it receives an HTTP/2 request on an HTTP/1 connection.

How to fix a 505 error

For website visitors

Regular website visitors rarely encounter the HTTP 505 error unless they use severely outdated software.

The first step is to update an outdated browser or switch to a different browser. Sometimes proxy settings or security software that scans web traffic can change the HTTP request before it reaches the server.

You can test this by temporarily disabling browser extensions, third-party tools, or proxy servers. If the site still fails on another network and across multiple devices, there might be a server configuration issue.

For developers and API users

Developers need to ensure that HTTP requests match the version the destination server expects. You can test this by running cURL commands from your terminal with the --http1.0, --http1.1, or --http2 flags to see how the remote endpoint responds:

curl -v --http1.1 https://example.com/
curl -v --http1.0 https://example.com/
curl -v --http2 https://example.com/

In the verbose output, lines starting with > show what curl sent, including the request line, such as GET / HTTP/1.1. Lines starting with < show the version and status code the server answered with. Over HTTPS, --http2 only asks for HTTP/2 during the TLS handshake, so the server can still answer over HTTP/1.1.

If curl reports that --http2 is not supported, your build lacks HTTP/2, so test from another machine or a newer curl build.

If your script builds requests by hand, make sure spaces in the URL are encoded as %20 and each line ends with \r\n, since malformed request lines are a common cause of 505 errors. For HTTP client libraries in Python or Node applications, update to the latest version and check which HTTP version the client uses.

For website owners

On the server side, system administrators should review their access logs to see if the 505 error affects all visitors or specific traffic patterns. After identifying the scope, check the Nginx or Apache configuration files to verify the server accepts the correct protocols. Nginx records these requests in its error log as client sent invalid version at the info level.

You should also trace the network route through any content delivery networks or reverse proxies. Every intermediary needs to communicate using an HTTP version supported by the next server in the sequence.

Fix a persistent 505 quickly, because Google treats it like other 5xx errors: its crawlers slow down, and already indexed URLs that keep returning server errors are eventually dropped from the index.

Can a proxy server cause a 505 error?

Yes, proxy servers and other intermediaries can cause 505 errors. It usually happens when the proxy alters the HTTP request or attempts to forward traffic using an HTTP version the backend server does not support.

Proxies that only tunnel traffic pass requests through unchanged, so they rarely cause a 505 error. That includes SOCKS5 proxies and HTTP proxies that carry HTTPS traffic through a CONNECT tunnel. MarsProxies residential proxies, for example, support both HTTP/HTTPS and SOCKS5.

You can isolate the issue by sending the same cURL request directly and through the proxy server, then comparing the results. Behind a reverse proxy, send the direct request to the backend IP address. If the direct request succeeds but the proxied route returns a 505 error, the proxy configuration is the source of the problem:

# Direct request
curl -v https://example.com/
 
# Through a forward proxy
curl -v -x http://proxy.example.com:8080 https://example.com/
 
# Straight to the backend server IP address
curl -v --resolve example.com:443:203.0.113.10 https://example.com/

Run clean automated requests without 505 errors

Get residential IPs

HTTP 505 vs. other HTTP errors

Here is how a 505 error compares with other HTTP errors you might see:

Conclusion

A 505 error occurs when a server receives a request using an HTTP version it does not support, or a request line too malformed to read, and returns the 505 status code instead of processing it.

Visitors can try a different browser or network and turn off proxies. Developers and system administrators, however, need to check the request line their client sends, review server configurations, and make sure that intermediaries like reverse proxies forward traffic using an HTTP version the backend system understands.

Frequently asked questions

Is a 505 error a client-side or server-side error?

It is a server-side error. The 5xx class of status codes indicates that the server failed to fulfill the request. In this case, the server refuses or is unable to support the HTTP version the client sent, but the cause often sits on the client side, such as a malformed request line or a misconfigured proxy server.

Can a 505 error affect only one page on a website?

Yes, it can. Some setups might route specific pages to different backend servers. If one of those backend servers does not support the requested HTTP version, visitors will see a 505 error when accessing that specific page.

Why do automated requests encounter 505 errors when browsers work normally?

Automated tools often build request lines by hand or force a specific HTTP version, so a malformed request line or a version the server does not support goes out as written. Modern web browsers format requests correctly and agree on an HTTP version both sides support during the TLS handshake.

Is a 505 error caused by a blocked IP address?

No. Firewalls and security systems usually use different status codes, like 403 Forbidden, when blocking an IP address. A 505 error points to the HTTP version in the request or a malformed request line, not to your IP address.

Learn more

Related articles