Skip to main content
HTTP/5xx (Server Error)

505 HTTP Version Not Supported

The server does not support, or refuses to support, the major version of HTTP that was used in the request message.

❓ Why does this happen?

Client requested an unsupported HTTP protocol version (e.g. attempting HTTP/3 when server only supports HTTP/1.1 or HTTP/2).

✅ How to fix it

Configure web server (Nginx/Cloudflare) to enable modern HTTP protocols or use standard HTTP/1.1.

Return or handle 505 in your stack

// app/api/resource/route.ts
export function GET() {
  return Response.json(
    { error: "HTTP Version Not Supported", status: 505 },
    {
      status: 505
    }
  );
}

Live 505 mock endpoint

Point your app, tests, or retry logic at this free public URL to reproduce a real 505 response (CORS enabled, optional ?delay=ms up to 5000).

https://castov.com/api/mock/505

Frequently Asked Questions

What does HTTP Status 505 mean?
The server does not support, or refuses to support, the major version of HTTP that was used in the request message.
Why am I getting a 505 status code?
Client requested an unsupported HTTP protocol version (e.g. attempting HTTP/3 when server only supports HTTP/1.1 or HTTP/2).
How do I fix a 505 HTTP Version Not Supported error?
Configure web server (Nginx/Cloudflare) to enable modern HTTP protocols or use standard HTTP/1.1.
How can I test how my app handles a 505 response?
Send a request to https://castov.com/api/mock/505 — it returns a real 505 HTTP Version Not Supported response with CORS enabled. Add ?delay=2000 to simulate a slow server.

Other 5xx status codes

Browse the full HTTP status codes directory or troubleshoot terminal errors in the Error Fix Encyclopedia.