Free auditStart free
GuideError · HTTP status codes

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.

4 min
read
6
sources
Oct 28, 2026
updated
Scaplet Editorial Team
author
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
  2. Reproduce it and read the log
  3. Find the cause and fix it
  4. 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 withChatGPTClaudePerplexityGoogleAI Mode

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
01What 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 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.

02Fix 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
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
# 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 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;
03How it works

Find the cause and fix it

Causes and fixes
CauseHow to checkFix
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 versionUse a real HTTP client. curl documents --http1.1 as the default for http:// URLs and uses TLS negotiation for HTTP/2 on HTTPS
A load balancer or proxy rewrites the request line badlyCompare what the proxy receives with what the origin logs; MDN's example is a load balancer that mishandles percent-encoding in the URLFix the proxy configuration so it forwards the request line unchanged, then retest end to end
A test harness or custom client building raw requestsCheck that lines end in \r\n and the version is HTTP/1.0 or HTTP/1.1Fix 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.

04Explained

What a 505 does to SEO

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 and the other server errors: 500, 501 and 502.
Questions

Asked a lot.

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

01What 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.

02Is 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.

03Can 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.

04Does a 505 hurt SEO?

It is a 5xx, and Google says 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. 01RFC 9110: HTTP Semanticsrfc-editor.org · checked 2026-11-01
  2. 02MDN: 505 HTTP Version Not Supporteddeveloper.mozilla.org · checked 2026-11-01
  3. 03nginx source: src/http/ngx_http_parse.cgithub.com · checked 2026-11-01
  4. 04nginx source: src/http/ngx_http_request.cgithub.com · checked 2026-11-01
  5. 05curl: command line manual (--http1.1, --http2, --http2-prior-knowledge)curl.se · checked 2026-11-01
  6. 06How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-11-01
Free · 2 minutes

Tools point. Agencies advise. This one ships.

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

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane