GET / HTTP/2.0
- nginx (from source)
- 505
- Apache 2.4.62 (tested)
- 200
- Cloudflare-fronted host (tested)
- 505
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.
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.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
GET / HTTP/2.0GET / HTTP/9.9GET / HTTP/10.0GET /dog trainers HTTP/1.1 (space in the URL)GET / HTTP/1.1 ended with \n onlyMDN 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.
\r\n endings matter.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# 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 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;| 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 on 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 |
Capture it from the client side. curl -v prints the request line it sent with a > prefix.
Hit the origin address directly, then the proxy or CDN, and note which hop starts returning 505.
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.
Repeat the exact failing call and confirm a non-505 status.
4 questions people ask next, answered from the sources on this page.
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.
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.
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.
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.
Run the free audit, then approve the fixes. Every change can be undone.