LiveFor developers & web engineers

HTTP Status Code & Header Reference

A searchable reference of HTTP status codes and headers, with common causes and which side to look at, and an explainer for pasted response headers. Includes IIS, Nginx and Cloudflare codes.

Runs in your browser. Your data never leaves this device.
~/apps/http-referenceruns in your browser · nothing uploaded
A number (502), a class (4xx) or words (timeout, cloudflare)

100 Continue Informational

The server got the request headers; the client can send the body (used with Expect: 100-continue).

101 Switching Protocols Informational

The server is switching protocol as asked, usually to WebSocket.

Common causes: Normal for WebSocket upgrades. If a proxy strips the Upgrade header, WebSockets fail instead.

103 Early Hints Informational

Preliminary headers (usually Link preload hints) sent before the final response.

200 OK Success

The request succeeded.

201 Created Success

A new resource was created; the Location header usually points to it.

202 Accepted Success

The request was accepted for processing but isn’t finished: poll the status URL if one is given.

204 No Content Success

Success with no body, common for DELETE and some PUT/PATCH requests.

206 Partial Content Success

Part of the resource was returned, in answer to a Range request (resumed downloads, video seeking).

301 Moved Permanently Redirection

The resource has a new permanent URL. Browsers and search engines cache it.

Common causes: HTTP to HTTPS redirects, domain moves. Browsers may change POST to GET; use 308 to keep the method.

→ Look at the server or app

302 Found Redirection

Temporary redirect to the Location header.

Common causes: Sign-in redirects (SSO), load balancer stickiness. A loop of 302s usually means a cookie or session isn’t being kept.

→ Look at the server or app

303 See Other Redirection

Go and GET another URL, typically after a form POST.

304 Not Modified Redirection

The cached copy is still valid (answer to If-None-Match or If-Modified-Since). No body.

307 Temporary Redirect Redirection

Temporary redirect that keeps the method and body.

308 Permanent Redirect Redirection

Permanent redirect that keeps the method and body.

400 Bad Request Client error

The server couldn’t understand the request.

Common causes: Malformed JSON, invalid query parameters, headers or cookies too large (often a huge cookie or Kerberos token), a client sending HTTP to an HTTPS port.

→ Look at the client or request

401 Unauthorized Client error

Authentication is missing or failed. The WWW-Authenticate header says which scheme to use.

Common causes: Expired or missing token, wrong audience in a JWT, Kerberos falling back to NTLM, clock skew.

→ Look at the client or request

403 Forbidden Client error

The server knows who you are but won’t allow it.

Common causes: Missing role or scope, IP restriction, WAF block, file permissions, directory listing disabled, Conditional Access.

→ Look at the server or app

404 Not Found Client error

Nothing at this URL (or the server hides that it exists).

Common causes: Wrong path, case sensitivity on Linux, missing rewrite rule, wrong virtual host, deployment slot mismatch.

→ Could be either side

405 Method Not Allowed Client error

The URL exists but doesn’t accept this method; the Allow header lists the ones it does.

Common causes: POST to a static file, WebDAV module intercepting PUT/DELETE on IIS, missing CORS preflight handler.

→ Look at the server or app

406 Not Acceptable Client error

The server can’t produce a format matching the Accept headers.

407 Proxy Authentication Required Client error

A forward proxy wants credentials before passing the request on.

Common causes: Corporate proxy needs NTLM/Kerberos; set the proxy credentials or bypass it for the destination.

→ Look at the proxy, gateway or load balancer

408 Request Timeout Client error

The client took too long to send the request.

Common causes: Slow uploads, idle keep-alive connections being closed.

→ Could be either side

409 Conflict Client error

The request conflicts with the resource’s current state.

Common causes: Edit conflicts, duplicate names, optimistic concurrency failures.

→ Look at the client or request

410 Gone Client error

Deliberately removed, and not coming back. Search engines drop it faster than a 404.

411 Length Required Client error

The server needs a Content-Length header.

412 Precondition Failed Client error

An If-Match or similar condition wasn’t met (someone else changed it first).

413 Content Too Large Client error

The request body is bigger than the server allows.

Common causes: Upload limits: Nginx client_max_body_size (1 MB default), IIS maxAllowedContentLength (about 28.6 MB default), API gateway or WAF body limits.

→ Look at the server or app

414 URI Too Long Client error

The URL is too long for the server.

Common causes: Huge query strings, redirect loops appending parameters, SAML requests sent by GET.

→ Look at the client or request

415 Unsupported Media Type Client error

The server doesn’t accept this Content-Type.

Common causes: Sending JSON without Content-Type: application/json, or form data to a JSON API.

→ Look at the client or request

416 Range Not Satisfiable Client error

The requested byte range is outside the file.

418 I'm a teapot Client error

An April Fools’ joke from RFC 2324, sometimes used to reject bots.

421 Misdirected Request Client error

The request reached a server that can’t answer for this host.

Common causes: HTTP/2 connection reuse across hostnames sharing a certificate but not a server, SNI and Host header mismatch.

→ Look at the server or app

422 Unprocessable Content Client error

The request was well-formed but failed validation.

Common causes: Missing required fields or invalid values in an API call; the body usually lists them.

→ Look at the client or request

423 Locked Client error

The resource is locked (WebDAV, SharePoint files checked out or open elsewhere).

425 Too Early Client error

The server won’t process a request that might be replayed (TLS 1.3 early data).

426 Upgrade Required Client error

Use a different protocol, e.g. TLS or HTTP/2.

428 Precondition Required Client error

The server needs a conditional request (If-Match) to avoid lost updates.

429 Too Many Requests Client error

Rate limited. Retry-After says how long to wait.

Common causes: API throttling (Microsoft Graph, ARM, GitHub), WAF rate rules. Back off exponentially and honour Retry-After.

→ Look at the client or request

431 Request Header Fields Too Large Client error

Headers, usually cookies, are too big.

Common causes: Too many or too large cookies, big Kerberos tokens for users in many groups. Clear cookies or raise the server header limit.

→ Look at the client or request

451 Unavailable For Legal Reasons Client error

Blocked for legal reasons such as a court order.

500 Internal Server Error Server error

Something went wrong on the server; the generic catch-all.

Common causes: Unhandled exception, bad config, missing environment variable, database down. Check the application log, not the web server log.

→ Look at the server or app

501 Not Implemented Server error

The server doesn’t support this method at all.

502 Bad Gateway Server error

A proxy or load balancer got an invalid response (or none) from the server behind it.

Common causes: App crashed or not listening, wrong upstream port, upstream closed the connection, TLS mismatch between proxy and backend, response headers too big for the proxy buffer.

→ Look at the proxy, gateway or load balancer

503 Service Unavailable Server error

Temporarily can’t handle the request.

Common causes: Overloaded, app pool stopped (IIS), maintenance mode, no healthy backends behind the load balancer, autoscaling not caught up.

→ Look at the server or app

504 Gateway Timeout Server error

A proxy or load balancer gave up waiting for the server behind it.

Common causes: Slow queries or downstream APIs, proxy timeout shorter than the app (Nginx proxy_read_timeout 60 s, Azure Application Gateway 20 s default, AWS ALB idle timeout 60 s), firewall dropping idle connections.

→ Look at the proxy, gateway or load balancer

505 HTTP Version Not Supported Server error

The server doesn’t support this HTTP version.

507 Insufficient Storage Server error

The server ran out of space to complete the request (WebDAV).

508 Loop Detected Server error

The server found an infinite loop while processing (WebDAV).

511 Network Authentication Required Server error

A captive portal (hotel or guest Wi-Fi) wants you to sign in first.

→ Look at the client or request

440 Login Time-out IIS

Microsoft IIS / Outlook on the web: the session expired.

444 No Response Nginx

Nginx closed the connection without replying, usually to drop bad requests or bots.

494 Request Header Too Large Nginx

Nginx’s own version of 431.

495 SSL Certificate Error Nginx

Nginx: the client certificate was invalid.

496 SSL Certificate Required Nginx

Nginx: a client certificate is required but wasn’t sent.

497 HTTP Request Sent to HTTPS Port Nginx

Nginx: plain HTTP arrived on the TLS port.

499 Client Closed Request Nginx

Nginx log only: the client gave up before the server replied.

Common causes: Slow backend and an impatient client or upstream proxy with a shorter timeout.

520 Web Server Returned an Unknown Error Cloudflare

Cloudflare: the origin returned something unexpected or reset the connection.

→ Look at the server or app

521 Web Server Is Down Cloudflare

Cloudflare: the origin refused the connection.

Common causes: Origin down, or a firewall blocking Cloudflare’s IP ranges.

→ Look at the server or app

522 Connection Timed Out Cloudflare

Cloudflare: couldn’t complete a TCP connection to the origin.

→ Look at the server or app

523 Origin Is Unreachable Cloudflare

Cloudflare: no route to the origin, often wrong DNS records.

→ Look at the server or app

524 A Timeout Occurred Cloudflare

Cloudflare: connected, but the origin took over 100 seconds to answer.

→ Look at the server or app

525 SSL Handshake Failed Cloudflare

Cloudflare: TLS handshake with the origin failed.

→ Look at the server or app

526 Invalid SSL Certificate Cloudflare

Cloudflare (Full strict): the origin certificate isn’t valid.

→ Look at the server or app

Standard codes from RFC 9110 and related RFCs, plus common non-standard codes from IIS, Nginx and Cloudflare. Default timeouts quoted are the vendors’ defaults and may differ in your setup.

What it does

  • Every status codeAll standard codes plus common IIS, Nginx and Cloudflare codes, with common causes and which side to look at.
  • Headers explainedRouting, auth, caching, CORS, security and diagnostic headers, with examples and gotchas.
  • Explain a responsePaste curl -I or browser developer tools output and get each status and header explained.
  • Search your wayBy number, by class (5xx) or by words such as “timeout” or “cors”.

How to use it

  1. Search for a code or header

    Or switch to “Explain a response” and paste the headers.

  2. Read the common causes
  3. Check the side it points to

    Client, server, or the proxy and load balancer in between.

Questions people ask

What is the difference between 502 and 504?

Both come from a proxy or load balancer. 502 means the server behind it sent a bad response or none at all (crashed, wrong port, connection reset). 504 means it waited too long for an answer.

What is the difference between 401 and 403?

401 means you aren’t authenticated, or your credentials failed. 403 means the server knows who you are but you aren’t allowed.

Why do I see 499 in Nginx logs?

499 is Nginx’s own code for “client closed the request”: the client or an upstream proxy gave up before the server replied, usually because the backend was slow.

Last updated 4 Dec 2026 · More in Data & Developer Utilities

More Data & Developer Utilities tools

See all →
Your product here. Reach IT engineers and architects who use these tools.Advertise →