# 505 HTTP Version Not Supported

> What a 505 means, the request lines that trigger it on nginx and Cloudflare, why Apache answers 200 or 400 instead, and how to fix it with curl tests.

Canonical: https://scaplet.com/errors/http/505

Guide Error · HTTP status codes

What a 505 means, the request lines that trigger it on nginx and Cloudflare, why Apache answers 200 or 400 instead, and how to fix it with curl tests.

4 min

read

6

sources

Oct 28, 2026

updated

Scaplet Editorial Team

author

505 5xx · Server error

Defined in

RFC 9110, section 15.6.6

Class

5xx server error

nginx trigger

Request-line HTTP major version above 1

The short answer

A 505 HTTP Version Not Supported means the server does not support, or refuses to support, the major HTTP version in the request message. In practice you see it when a client or proxy sends a request line with a version the server's parser rejects, such as HTTP/2.0 in plain text. Send a supported version (use curl --http1.1 to test) and check any proxy that rewrites request lines.

1. [What the 505 status means](#what-the-505-status-means)
2. [Reproduce it and read the log](#reproduce-it-and-read-the-log)
3. [Find the cause and fix it](#find-the-cause-and-fix-it)
4. [What a 505 does to SEO](#what-a-505-does-to-seo)

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F505%20(%22505%20HTTP%20Version%20Not%20Supported%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F505%20(%22505%20HTTP%20Version%20Not%20Supported%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F505%20(%22505%20HTTP%20Version%20Not%20Supported%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F505%20(%22505%20HTTP%20Version%20Not%20Supported%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## At a glance

4 facts from the sources below

RFC 9110, section 15.6.6

Defined in

5xx server error

Class

Request-line HTTP major version above 1

nginx trigger

client sent invalid version (info level)

nginx log text

_01_What different servers return for the same raw request lines

## What the 505 status means

RFC 9110 defines it this way: the 505 (HTTP Version Not Supported) [status code](/glossary/http-status-codes) indicates that the server does not support, or refuses to support, the major version of HTTP that was used in the request message. The server is indicating that it is unable or unwilling to complete the request using the same major version as the client. A server SHOULD generate a representation that describes why that version is not supported and what other protocols it supports, so read the response body.

Request line sent

### `GET / HTTP/2.0`

nginx (from source)

505

Apache 2.4.62 (tested)

200

Cloudflare-fronted host (tested)

505

Request line sent

### `GET / HTTP/9.9`

nginx (from source)

505

Apache 2.4.62 (tested)

200

Cloudflare-fronted host (tested)

505

Request line sent

### `GET / HTTP/10.0`

nginx (from source)

505

Apache 2.4.62 (tested)

400

Cloudflare-fronted host (tested)

505

Request line sent

### `GET /dog trainers HTTP/1.1` (space in the URL)

nginx (from source)

Not tested

Apache 2.4.62 (tested)

400

Cloudflare-fronted host (tested)

404

Request line sent

### `GET / HTTP/1.1` ended with `\n` only

nginx (from source)

Not tested

Apache 2.4.62 (tested)

400

Cloudflare-fronted host (tested)

200

MDN adds that a 505 is common when a request line is improperly formed (for example `GET /path to resource HTTP/1.1`, or `\n` instead of `\r\n` ending the line), and that intermediaries such as load balancers may mishandle the request lines they forward. That is the documented case. What your own servers do is narrower, as the table shows.

The nginx column comes from nginx's source: `ngx_http_parse_request_line` returns an invalid-version result when the major version digit is above 1, and `ngx_http_process_request_line` turns that into a 505, while every other request-line parse error becomes a 400. The Apache and Cloudflare columns are results from raw requests sent on 2026-11-01, so treat them as a snapshot of those versions, not a guarantee.

_02_Fix it on your stack

## Reproduce it and read the log

Send the request line yourself with a raw socket tool, so no HTTP library corrects it. The `\r\n` endings matter.

Send an unsupported version to a plain HTTP port
Send an unsupported version to a plain HTTP port

```
printf 'GET / HTTP/2.0\r\nHost: example.com\r\n\r\n' | nc example.com 80 # A server that rejects the version answers: # HTTP/1.1 505 HTTP Version Not Supported
```

Compare with versions curl can actually speak
Compare with versions curl can actually speak

```
# HTTP/1.1 is curl's default for http:// URLs curl -sI --http1.1 http://example.com/ | head -1 # HTTP/1.0 on request curl -sI --http1.0 http://example.com/ | head -1 # Cleartext HTTP/2 without the Upgrade step; fails on servers that do not # speak HTTP/2 over plain TCP curl -sI --http2-prior-knowledge http://example.com/ | head -1
```

nginx: log the reason (the message is written at info level)
nginx: log the reason (the message is written at info level)

```
# nginx writes "client sent invalid version" at the info level, # so the error_log level must be info or lower to see it. error_log /var/log/nginx/error.log info;
```

**nginx has no directive for this**The 505 in nginx is a parser result, not a setting. There is nothing to raise or enable; the fix is on the sender, or on a proxy that mangles the request line.

_03_How it works

## Find the cause and fix it

Causes and fixes
| Cause | How to check | Fix |
| A client or script sends a version string the server rejects (`HTTP/2.0`, `HTTP/9.9`) | Reproduce with the raw request above; the nginx log line `client sent invalid version` | Use a real HTTP client. curl documents `--http1.1` as the default for `http://` URLs and uses TLS negotiation for [HTTP/2](/glossary/http-2) on [HTTPS](/glossary/https) |
| A load balancer or proxy rewrites the request line badly | Compare what the proxy receives with what the origin logs; MDN's example is a load balancer that mishandles percent-encoding in the URL | Fix the proxy configuration so it forwards the request line unchanged, then retest end to end |
| A test harness or custom client building raw requests | Check that lines end in `\r\n` and the version is `HTTP/1.0` or `HTTP/1.1` | Fix the client; MDN lists `\n` terminators as a malformed request line |

1. 01

### Get the real request

Capture it from the client side. `curl -v` prints the request line it sent with a `>` prefix.
2. 02

### Test each hop

Hit the origin address directly, then the proxy or CDN, and note which hop starts returning 505.
3. 03

### Read the 505 body

RFC 9110 says the server SHOULD describe why the version is not supported and what other protocols it supports. A body with a request ID (as in MDN's example) lets you find the line in server logs.
4. 04

### Retest with the corrected request

Repeat the exact failing call and confirm a non-505 status.

_04_Explained

## What a 505 does to SEO

[Googlebot](/ai-crawlers/googlebot) sends well-formed requests, so a 505 for a crawler usually means something between Google and your server is altering the request line. Google's status code guide describes 5xx as a class rather than listing 505: 5xx and 429 errors prompt crawlers to temporarily slow down, already indexed URLs are preserved but eventually dropped, and content received with a 5xx is ignored. Once the server returns a 2xx again, Google gradually increases the crawl rate. See [5xx server errors](/seo-issues/server-errors-5xx) and the other server errors: [500](/errors/http/500), [501](/errors/http/501) and [502](/errors/http/502).

Questions

## Asked a lot.

4 questions people ask next, answered from the sources on this page.

_01_ What causes a 505 HTTP Version Not Supported error?

The server does not support, or refuses to support, the major HTTP version in the request. In nginx, a request line whose major version is above 1 produces it. Misconfigured load balancers that corrupt the request line are the other documented source.

_02_ Is a 505 the same as a 400?

No. In nginx's source an invalid version in the request line gives a 505, while other request-line parse errors give a 400. Other servers can differ: Apache 2.4.62 answered 200 for HTTP/2.0 and 400 for HTTP/10.0 in a test on 2026-11-01.

_03_ Can a visitor fix a 505?

Rarely. A browser sends a valid request, so a visitor can retry or switch networks, but the cause is usually the site's own proxy or server. Report it to the site owner with the time and URL.

_04_ Does a 505 hurt SEO?

It is a 5xx, and Google says [5xx errors](/errors/http/5xx-errors) make its crawlers slow down and that URLs persistently returning server errors eventually drop from the index. Fix it quickly.

Sources · 6

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- rfc-editor.org
- mozilla.org
- github.com
- curl.se
- google.com

1. 01 [RFC 9110: HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html) rfc-editor.org · checked 2026-11-01
2. 02 [MDN: 505 HTTP Version Not Supported](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/505) developer.mozilla.org · checked 2026-11-01
3. 03 [nginx source: src/http/ngx_http_parse.c](https://github.com/nginx/nginx/blob/master/src/http/ngx_http_parse.c) github.com · checked 2026-11-01
4. 04 [nginx source: src/http/ngx_http_request.c](https://github.com/nginx/nginx/blob/master/src/http/ngx_http_request.c) github.com · checked 2026-11-01
5. 05 [curl: command line manual (--http1.1, --http2, --http2-prior-knowledge)](https://curl.se/docs/manpage.html) curl.se · checked 2026-11-01
6. 06 [How HTTP status codes affect Google's crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) developers.google.com · checked 2026-11-01

## Keep learning

[All errors](/errors)

[Learn HTTP 500 Internal Server Error HTTP status codes](/errors/http/500) [Related HTTP 400 Bad Request HTTP status codes](/errors/http/400) [Read next HTTP 501 Not Implemented HTTP status codes](/errors/http/501) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in errors
[504 Gateway Timeout on IIS](/errors/http/504/iis) [504 Gateway Time-out in nginx](/errors/http/504/nginx)

More in HTTP status codes
[421 Misdirected Request](/errors/http/421) [422 Unprocessable Content (Unprocessable Entity)](/errors/http/422) [423 Locked](/errors/http/423) [424 Failed Dependency](/errors/http/424) [425 Too Early](/errors/http/425) [426 Upgrade Required](/errors/http/426) [428 Precondition Required](/errors/http/428) [429 Too Many Requests](/errors/http/429) [451 Unavailable For Legal Reasons](/errors/http/451) [502 Bad Gateway](/errors/http/502) [503 Service Unavailable](/errors/http/503) [504 Gateway Timeout](/errors/http/504) [505 HTTP Version Not Supported](/errors/http/505) [506 Variant Also Negotiates](/errors/http/506) [507 Insufficient Storage](/errors/http/507) [508 Loop Detected](/errors/http/508) [510 Not Extended](/errors/http/510) [511 Network Authentication Required](/errors/http/511) [5xx errors](/errors/http/5xx-errors) [HTTP 200 OK](/errors/http/200) [HTTP 201 Created](/errors/http/201) [HTTP 204 No Content](/errors/http/204) [HTTP 206 Partial Content](/errors/http/206) [HTTP 301 Moved Permanently](/errors/http/301)

Terms on this page
[HTTP status codes](/glossary/http-status-codes) [HTTP/2](/glossary/http-2) [HTTPS](/glossary/https)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
