Skip to content

505 HTTP Version Not Supported — Meaning, Common Causes & How to Fix

505 5xx Server Error RFC 9110 §15.6.6

505 HTTP Version Not Supported means: The server does not support the HTTP protocol version used in the request. Rare today: it appears when a client speaks a version the server cannot handle, such as HTTP/1.0 to an HTTP/2-only endpoint or a malformed version string. Server-error 5xx codes mean the server failed while trying to fulfill a valid request. The fault lies with the service or its upstreams, not the caller. Some members are transient and retryable with backoff; others indicate bugs or configuration errors that only the operator can fix. In practice you will meet 505 when a legacy client or script sends http/1.0 to a modern-only server; a hand-crafted request with a malformed version token; an embedded device with an ancient http stack. On the client side, use a current HTTP library and version (HTTP/1.1 or HTTP/2); check raw request lines if you build requests by hand. On the server side, support HTTP/1.1 at minimum for compatibility; return 505 with the supported versions rather than dropping the connection silently.

Advertisement
Ad slot · ref-top

When 505 happens

  • A legacy client or script sends HTTP/1.0 to a modern-only server
  • A hand-crafted request with a malformed version token
  • An embedded device with an ancient HTTP stack

How to fix it

On the client

Use a current HTTP library and version (HTTP/1.1 or HTTP/2); check raw request lines if you build requests by hand.

On the server

Support HTTP/1.1 at minimum for compatibility; return 505 with the supported versions rather than dropping the connection silently.

Should you retry?

Operator-side fault; retry idempotent calls with backoff, escalate if persistent.

Debugging steps

When 505 appears unexpectedly, start by capturing the full exchange: 'curl -i' or the browser DevTools Network tab shows the exact status line and response headers, which often carry the real explanation. Determine whether the error came from the edge or the origin: a proxy-generated error page looks different from your app's. Then trace upstream health, timeouts and recent deployments. For this code specifically, check whether the most common trigger applies to your situation: a legacy client or script sends http/1.0 to a modern-only server. Compare your exchange against the raw HTTP example above. If you operate the server, correlate the timestamp with application and proxy logs using the request id; if you are the client, verify the request shape against the API documentation before changing anything or retrying.

Notes & gotchas

505 is rare because mainstream clients and servers negotiate compatible versions automatically; you will mostly meet it with hand-crafted requests, ancient devices or protocol experiments.

Examples

Raw HTTP
HTTP/1.1 505 HTTP Version Not Supported
Content-Type: application/json
Content-Length: 124

{
  "error": "http_version_not_supported",
  "message": "A legacy client or script sends HTTP/1.0 to a modern-only server"
}
curl
curl -i https://api.example.com/v1/resource   # observe the 505 response and its headers
JavaScript (fetch)
const res = await fetch("https://api.example.com/v1/resource");
if (res.status === 505) {
  // server-side failure: retry idempotent calls with backoff + jitter,
  // surface a friendly error after the retry budget is exhausted
  throw new TransientError(await res.text());
}
Python (requests)
import requests

res = requests.get("https://api.example.com/v1/resource", timeout=10)
if res.status_code == 505:
    # server fault: back off and retry idempotent calls;
    # log res.headers.get("X-Request-Id") for the operator
    res.raise_for_status()

Frequently asked questions

Is 505 common?

Very rare — mainstream clients and servers negotiate compatible versions automatically. You will mostly see it with custom sockets, old devices, or protocol experiments.

Does HTTP/2 negotiation failure cause 505?

Usually not: TLS ALPN falls back to HTTP/1.1 gracefully. 505 is about an explicitly unsupported version in the request line.

Are 5xx errors safe to retry?

Idempotent requests (GET, PUT, DELETE) generally yes, with exponential backoff and jitter. Non-idempotent POSTs need care: a 504 may mean the work completed upstream. Check state or use idempotency keys before retrying.

Who should fix a 5xx — the caller or the provider?

The provider: 5xx asserts a server-side fault. Callers can only retry politely (backoff, idempotency) and report correlation ids; persistent 5xx need operator action on logs, upstreams or configuration.

Advertisement
Ad slot · ref-in-article

Try the JSON Validator

Check JSON syntax and locate errors by line and column.

Open tool →