HTTP Status Codes

Find any HTTP status code: what it means, what usually causes it and how to fix it.

72 status codes

1xx Informational

1xx codes are interim responses: the request was received and processing continues.

  1. 100Continue

    The server has received the request headers and the client should go ahead and send the body. It is an interim response; the final status follows.

    Causes
    • The client sent Expect: 100-continue before a large request body (curl does this for large POST and PUT bodies).
    • The server confirms it will accept the body before the upload starts.
    Fix
    Nothing to fix. If a server or proxy stalls on the expectation, send the request without the Expect header (curl: -H "Expect:").
    Spec
    RFC 9110, Section 15.2.1
  2. 101Switching Protocols

    The server agrees to switch to the protocol the client asked for in the Upgrade header, and the connection continues in that protocol.

    Causes
    • A WebSocket handshake succeeded.
    • An HTTP/1.1 request to upgrade to cleartext HTTP/2 (h2c) was accepted.
    Fix
    Expected for WebSocket connections. If you get 200, 400 or 426 instead of 101, check that every proxy in between forwards the Upgrade and Connection headers.
    Spec
    RFC 9110, Section 15.2.2
  3. 102Processing

    A WebDAV interim response saying the server is still working on a long request. RFC 2518 defined it and RFC 4918 removed it, so it is deprecated.

    Causes
    • A WebDAV server handling a long COPY, MOVE or PROPFIND over many resources.
    • Older server software that still sends it to keep a slow request alive.
    Fix
    Nothing to fix; wait for the final status. A client that does not understand it ignores it, as with any 1xx response.
    Spec
    RFC 2518, Section 10.1 (deprecated; not in RFC 4918)
  4. 103Early Hints

    An interim response carrying Link headers, so the browser can start preloading or preconnecting while the server prepares the final response.

    Causes
    • The server or CDN sends Link: rel=preload or rel=preconnect hints ahead of the page.
    • A CDN feature such as Cloudflare Early Hints is turned on.
    Fix
    Nothing to fix. If an old client or proxy breaks on it, turn Early Hints off for that path.
    Spec
    RFC 8297

2xx Success

2xx codes mean the request succeeded.

  1. 200OK

    The request succeeded. What the body holds depends on the method: the resource for GET, the result of the action for POST.

    Causes
    • A normal successful request.
    • An API that reports errors inside a 200 body instead of with a 4xx or 5xx status.
    Fix
    Nothing to fix. If something still went wrong, read the response body: some APIs return errors with status 200.
    Spec
    RFC 9110, Section 15.3.1
  2. 201Created

    The request succeeded and created one or more new resources. The Location header, when present, points at the new resource.

    Causes
    • A POST that created a record.
    • A PUT to a URL that did not exist yet.
    Fix
    Nothing to fix. Read the Location header or the body for the new resource's URL or ID.
    Spec
    RFC 9110, Section 15.3.2
  3. 202Accepted

    The request was accepted for processing, but processing has not finished and may still fail. HTTP has no way to report the later result.

    Causes
    • A job queued for asynchronous processing.
    • A batch or webhook endpoint that acknowledges before doing the work.
    Fix
    Poll the status URL or wait for the callback the API documents; a 202 alone does not mean the work succeeded.
    Spec
    RFC 9110, Section 15.3.3
  4. 203Non-Authoritative Information

    The request succeeded, but a transforming proxy modified the content the origin server sent.

    Causes
    • A proxy compressed, transcoded or rewrote the response.
    • A filtering or caching proxy changed the headers or body.
    Fix
    If you need the origin's exact response, bypass the proxy or send Cache-Control: no-transform.
    Spec
    RFC 9110, Section 15.3.4
  5. 204No Content

    The request succeeded and there is no body to send. For a PUT or DELETE it usually means the change was applied.

    Causes
    • A DELETE or PUT that has nothing to return.
    • A preflight or beacon endpoint that only acknowledges.
    Fix
    Nothing to fix. Do not call response.json() on a 204: there is no body to parse.
    Spec
    RFC 9110, Section 15.3.5
  6. 205Reset Content

    The request succeeded and the client should reset the view that sent it, such as clearing a form. No body is sent.

    Causes
    • A form endpoint asking the client to clear the form for the next entry.
    • Rarely used; most applications send 200 or 204 instead.
    Fix
    Nothing to fix. Clear the input that made the request, or treat it like a 204.
    Spec
    RFC 9110, Section 15.3.6
  7. 206Partial Content

    The server is sending only the byte ranges the client asked for with a Range header. Content-Range says which part is in the body.

    Causes
    • A video or audio player seeking within a file.
    • A download manager or curl -C - resuming an interrupted download.
    Fix
    Expected for range requests. If you wanted the whole file, send the request without a Range header.
    Spec
    RFC 9110, Section 15.3.7
  8. 207Multi-Status

    A WebDAV response that carries a separate status for each of several resources in an XML body.

    Causes
    • A WebDAV PROPFIND across a collection.
    • A batch operation where some items succeeded and some failed.
    Fix
    Read the status of each resource in the XML body; a 207 can hide individual failures.
    Spec
    RFC 4918, Section 11.1
  9. 208Already Reported

    Used inside a WebDAV 207 body to say that the members of a binding were already listed earlier in the response, so they are not repeated.

    Causes
    • A PROPFIND with Depth: infinity over collections that bind the same resource more than once.
    • A WebDAV server avoiding endless output from a binding loop.
    Fix
    Nothing to fix; the member's details appear elsewhere in the same response.
    Spec
    RFC 5842, Section 7.1
  10. 226IM Used

    The server fulfilled a GET with delta encoding: the body is the result of instance manipulations, such as a diff, applied to the current resource.

    Causes
    • The client sent A-IM to ask for a delta against a version it already has.
    • Rarely deployed; most servers never send it.
    Fix
    Apply the delta to your cached copy, or send the request without A-IM to get the full resource.
    Spec
    RFC 3229, Section 10.4.1

3xx Redirection

3xx codes mean the client has to take another step, usually follow a redirect.

  1. 300Multiple Choices

    The resource has several representations and the server leaves the choice to the client, often listing them in the body.

    Causes
    • Content negotiation where the server will not pick a language or format.
    • A URL that maps to several files with different extensions (Apache MultiViews).
    Fix
    Pick one of the listed URLs, or send Accept or Accept-Language headers specific enough for the server to choose.
    Spec
    RFC 9110, Section 15.4.1
  2. 301Moved Permanently

    The resource has a new permanent URL, given in the Location header, and the redirect is cacheable by default. For historical reasons clients may change a POST to a GET when following it.

    Causes
    • A site moved from http to https or to a new domain.
    • A URL changed and the old one now redirects.
    • A trailing-slash or www normalization rule.
    Fix
    Update links and API clients to the new URL. To redirect a POST without it turning into a GET, use 308.
    Spec
    RFC 9110, Section 15.4.2
  3. 302Found

    Also: Moved Temporarily

    The resource is temporarily at the URL in the Location header; keep using the original URL. As with 301, clients may change a POST to a GET when following it.

    Causes
    • A login redirect to a sign-in page.
    • A temporary redirect from a load balancer, CDN or framework.
    • A redirect after a form POST (303 is the better fit).
    Fix
    Follow the Location header. If the method has to stay POST, the server should send 307 instead.
    Spec
    RFC 9110, Section 15.4.3
  4. 303See Other

    The server sends the client to another URL, given in Location, which the client fetches with GET. Commonly used after a POST to show a result page.

    Causes
    • The Post/Redirect/Get pattern after a form submission.
    • An API that points to a status or result resource after accepting a request.
    Fix
    Follow the Location header with a GET. This is expected behaviour, not an error.
    Spec
    RFC 9110, Section 15.4.4
  5. 304Not Modified

    The answer to a conditional GET or HEAD (If-None-Match or If-Modified-Since): the cached copy is still valid. There is no body, and it is not an error.

    Causes
    • The browser revalidated a cached file and it has not changed.
    • A client sent an ETag or a last-modified date that still matches.
    Fix
    Nothing to fix; use the cached copy. If you expected fresh content, check that the ETag and Last-Modified change when the resource does.
    Spec
    RFC 9110, Section 15.4.5
  6. 305Use Proxy

    Once meant that the resource had to be fetched through the proxy named in Location. It is deprecated for security reasons, and clients do not follow it.

    Causes
    • Legacy server configuration.
    • Very old proxy or gateway software.
    Fix
    Do not rely on it. Configure the proxy on the client side, and remove the 305 from the server.
    Spec
    RFC 9110, Section 15.4.6 (deprecated)
  7. 306(Unused)

    Also: Switch Proxy

    Reserved and no longer used. An earlier draft defined it as Switch Proxy; RFC 9110 keeps the number reserved.

    Causes
    • A misconfigured or custom server returning a reserved code.
    • Old software written against the earlier draft.
    Fix
    Treat it as a bug in the server that sent it; no standard meaning applies.
    Spec
    RFC 9110, Section 15.4.7
  8. 307Temporary Redirect

    The resource is temporarily at the URL in Location, and the client repeats the request there with the same method and body. Keep using the original URL.

    Causes
    • A temporary redirect that has to keep a POST as a POST.
    • HSTS: browsers show an internal 307 when they upgrade http to https.
    • A load balancer or maintenance redirect.
    Fix
    Follow the Location header with the same method and body. If the move is permanent, the server should send 308.
    Spec
    RFC 9110, Section 15.4.8
  9. 308Permanent Redirect

    The resource has a new permanent URL in Location, and the client repeats the request there with the same method and body. Cacheable by default.

    Causes
    • An API endpoint moved permanently and has to keep POST bodies.
    • A framework's trailing-slash redirect (Next.js uses 308).
    • An http-to-https redirect that preserves the method.
    Fix
    Update the client to the new URL. Unlike 301, the method does not change to GET.
    Spec
    RFC 9110, Section 15.4.9

4xx Client errors

4xx codes mean the request was wrong or not allowed, so repeating it unchanged fails again.

  1. 400Bad Request

    The server cannot or will not process the request because of something it sees as a client error, such as malformed syntax or invalid framing.

    Causes
    • Malformed JSON, or a body that does not match its Content-Type.
    • A missing or invalid required parameter.
    • Malformed or oversized headers or cookies.
    Fix
    Read the response body for the field or parameter the server rejected, and validate the body and headers before sending.
    Spec
    RFC 9110, Section 15.5.1
  2. 401Unauthorized

    The request lacks valid authentication credentials for the resource. The server sends a WWW-Authenticate header saying how to authenticate.

    Causes
    • No Authorization header, token or session cookie was sent.
    • The token or password is wrong, expired or revoked.
    • Credentials for a different registry, realm or environment were sent.
    Fix
    Log in again or refresh the token, check that the Authorization header actually reaches the server, and follow the scheme named in WWW-Authenticate.
    Spec
    RFC 9110, Section 15.5.2
  3. 402Payment Required

    Reserved for future use by RFC 9110. Some APIs send it for billing problems, with their own meaning.

    Causes
    • An API account with an unpaid bill, an expired card or used-up credit.
    • A paid feature called on a free plan.
    Fix
    Check the account's billing in the provider's dashboard and read the response body for the provider's reason.
    Spec
    RFC 9110, Section 15.5.3
  4. 403Forbidden

    The server understood the request but refuses to fulfil it. If credentials were sent, the server considers them insufficient, so repeating the request with the same credentials will not help.

    Causes
    • The authenticated user or token lacks permission for the resource or action.
    • File system permissions or a server rule deny access.
    • A WAF, IP allowlist or geo rule blocked the request.
    Fix
    Check the roles, scopes or permissions of the account you authenticate as, and whether a firewall or access rule matches your request. Grant only the access that is needed.
    Spec
    RFC 9110, Section 15.5.4
  5. 404Not Found

    The server did not find anything at this URL, or is not willing to say that something exists there.

    Causes
    • A typo in the path or a wrong base URL.
    • A deleted resource or a wrong API version.
    • A missing route, rewrite rule or ingress rule.
    Fix
    Compare the requested URL, character by character, with the routes the server actually serves, including its base path and version prefix.
    Spec
    RFC 9110, Section 15.5.5
  6. 405Method Not Allowed

    The resource exists but does not support the request method. The response includes an Allow header listing the methods it does support.

    Causes
    • A POST to a URL that only accepts GET, or the reverse.
    • A framework route defined for one method only.
    • A static host or CDN that rejects PUT or DELETE.
    Fix
    Read the Allow header and use one of the listed methods, or add a handler for the method on the server.
    Spec
    RFC 9110, Section 15.5.6
  7. 406Not Acceptable

    The server cannot produce a response that matches the request's Accept, Accept-Language or Accept-Encoding headers, and will not send a default.

    Causes
    • A strict Accept header, such as Accept: application/xml sent to a JSON-only API.
    • A security module such as ModSecurity rejecting the request with 406.
    Fix
    Send Accept headers the server can satisfy, for example Accept: application/json or */*.
    Spec
    RFC 9110, Section 15.5.7
  8. 407Proxy Authentication Required

    Like 401, but a proxy between the client and the server requires authentication. The proxy sends a Proxy-Authenticate header with the scheme.

    Causes
    • A corporate proxy that needs a username and password.
    • Proxy credentials missing from the tool's proxy settings.
    • Expired proxy credentials, or a scheme such as NTLM the tool does not support.
    Fix
    Set the proxy credentials in the tool's proxy configuration and check which scheme the Proxy-Authenticate header asks for.
    Spec
    RFC 9110, Section 15.5.8
  9. 408Request Timeout

    The server did not receive a complete request within the time it was prepared to wait, and closes the connection.

    Causes
    • A slow or stalled upload over a poor connection.
    • An idle connection the client opened but never sent a full request on, such as a browser preconnect.
    • A proxy holding the request body back.
    Fix
    Retry the request on a new connection. For large uploads, check the network and the server's request or body timeout.
    Spec
    RFC 9110, Section 15.5.9
  10. 409Conflict

    The request conflicts with the current state of the resource, so the server cannot complete it.

    Causes
    • An edit based on an outdated version of the resource.
    • Creating a resource that already exists, such as a duplicate name or version.
    • Another operation already in progress on the same resource.
    Fix
    Fetch the current state, resolve the conflict and retry. The response body usually names the field or state that conflicts.
    Spec
    RFC 9110, Section 15.5.10
  11. 410Gone

    The resource used to exist at this URL, was removed on purpose, and is not coming back. Cacheable by default.

    Causes
    • Content deleted deliberately with no forwarding address.
    • A retired API version or endpoint.
    Fix
    Remove links to the URL and move to the replacement the provider documents.
    Spec
    RFC 9110, Section 15.5.11
  12. 411Length Required

    The server refuses the request because it has no Content-Length header and the server requires one.

    Causes
    • A body sent with chunked transfer encoding to a server that does not accept it.
    • A POST with no body and no Content-Length: 0.
    Fix
    Send a Content-Length header with the body size, or Content-Length: 0 for an empty body.
    Spec
    RFC 9110, Section 15.5.12
  13. 412Precondition Failed

    A condition in the request headers, such as If-Match or If-Unmodified-Since, was false on the server, so the request was not applied.

    Causes
    • Optimistic concurrency: the resource changed since you read its ETag.
    • A conditional upload or delete with a stale ETag.
    Fix
    Fetch the resource again to get the current ETag, re-apply your change and retry.
    Spec
    RFC 9110, Section 15.5.13
  14. 413Content Too Large

    Also: Payload Too Large, Request Entity Too Large

    The request body is larger than the server is willing or able to process. If the limit is temporary, the server may send Retry-After.

    Causes
    • An upload above the body size limit of nginx (client_max_body_size), a load balancer or the app.
    • A framework or body-parser limit set lower than the payload.
    • A git push or package publish larger than the host allows.
    Fix
    Raise the body size limit on every layer that enforces one (proxy, load balancer, app), or send the data in smaller pieces.
    Spec
    RFC 9110, Section 15.5.14
  15. 414URI Too Long

    Also: Request-URI Too Long

    The request URL is longer than the server is willing to interpret.

    Causes
    • Large data sent in query parameters instead of the body.
    • A redirect loop that appends to the query string each time.
    • A GET form with a very large number of fields.
    Fix
    Move large data into a POST body, and look for redirects that grow the URL.
    Spec
    RFC 9110, Section 15.5.15
  16. 415Unsupported Media Type

    The server refuses the request body because its format, given by Content-Type or Content-Encoding, is not supported for this method and resource.

    Causes
    • A JSON body sent without Content-Type: application/json.
    • Form data sent to an endpoint that expects JSON, or the reverse.
    • A compressed body the server cannot decode.
    Fix
    Set the Content-Type the endpoint expects, and make sure the body really is in that format.
    Spec
    RFC 9110, Section 15.5.16
  17. 416Range Not Satisfiable

    Also: Requested Range Not Satisfiable

    None of the byte ranges in the Range header overlap the current content of the resource.

    Causes
    • Resuming a download of a file that has since changed or shrunk.
    • A range that starts past the end of the file.
    Fix
    Delete the partial download and start again, or request the file without a Range header.
    Spec
    RFC 9110, Section 15.5.17
  18. 417Expectation Failed

    The server cannot meet the expectation in the request's Expect header.

    Causes
    • A server or proxy that does not support Expect: 100-continue.
    • An Expect header value other than 100-continue.
    Fix
    Send the request without the Expect header (curl: -H "Expect:").
    Spec
    RFC 9110, Section 15.5.18
  19. 418(Unused)

    Also: I'm a teapot

    Reserved by RFC 9110: it cannot currently be assigned to anything else. "I'm a teapot" comes from RFC 2324, an April Fools' protocol for coffee pots, and servers send it as a joke; it has no real HTTP meaning.

    Causes
    • An easter-egg endpoint.
    • A server that sends it on purpose to turn away bots or unwanted requests.
    Fix
    Treat it as a deliberate refusal by that particular server and read its documentation; there is no standard fix.
    Spec
    RFC 9110, Section 15.5.19
  20. 421Misdirected Request

    The request reached a server that cannot produce a response for the scheme and authority (host and port) in the request URL.

    Causes
    • HTTP/2 connection reuse: the client reused a connection for another hostname covered by the same certificate.
    • A virtual host or SNI setup that does not match the Host header.
    Fix
    Serve every hostname that shares a certificate from the same server, or give the hostnames separate certificates. The client may retry on a new connection.
    Spec
    RFC 9110, Section 15.5.20
  21. 422Unprocessable Content

    Also: Unprocessable Entity

    The server understands the content type and the syntax is correct, but it cannot process the instructions in it, as when validation fails.

    Causes
    • Validation errors: a missing required field, a wrong type or an out-of-range value.
    • A well-formed request that breaks a business rule.
    Fix
    Read the validation errors in the response body and correct the fields they name.
    Spec
    RFC 9110, Section 15.5.21
  22. 423Locked

    A WebDAV response: the source or destination resource is locked.

    Causes
    • Another user or client holds a WebDAV lock on the file.
    • A stale lock left behind by a client that crashed.
    Fix
    Wait for the lock to be released, or have its owner or an administrator unlock the resource.
    Spec
    RFC 4918, Section 11.3
  23. 424Failed Dependency

    A WebDAV response: the method could not be performed because another action it depended on failed.

    Causes
    • One change in a WebDAV PROPPATCH failed, so the others were not applied.
    • A batch operation where an earlier step failed.
    Fix
    Find the step that failed first, usually reported in the same response, and fix that.
    Spec
    RFC 4918, Section 11.4
  24. 425Too Early

    The server is unwilling to process a request that might be replayed, because it arrived in TLS 1.3 early data (0-RTT).

    Causes
    • A non-idempotent request sent as TLS 1.3 early data.
    • A CDN or proxy that forwards 0-RTT requests with Early-Data: 1.
    Fix
    Retry after the TLS handshake completes; browsers do this automatically. Servers should accept only idempotent requests in early data.
    Spec
    RFC 8470, Section 5.2
  25. 426Upgrade Required

    The server refuses to handle the request with the current protocol and names the protocol to switch to in an Upgrade header.

    Causes
    • A WebSocket endpoint reached with a plain HTTP request.
    • A server that requires a newer protocol version.
    Fix
    Read the Upgrade header and connect with that protocol, for example open the URL with a WebSocket client.
    Spec
    RFC 9110, Section 15.5.22
  26. 428Precondition Required

    The origin server requires the request to be conditional, to prevent lost updates.

    Causes
    • A PUT or PATCH sent without If-Match.
    • An API that enforces optimistic concurrency on every write.
    Fix
    Fetch the resource, then send the update with If-Match set to the ETag you received.
    Spec
    RFC 6585, Section 3
  27. 429Too Many Requests

    The client sent too many requests in a given amount of time. The server may include Retry-After to say how long to wait.

    Causes
    • An API or registry rate limit per token, user or IP address.
    • A retry loop without backoff.
    • Many clients sharing one IP address, such as CI runners behind NAT.
    Fix
    Wait for the time in Retry-After, retry with exponential backoff, and authenticate or raise the quota if your usage really needs more.
    Spec
    RFC 6585, Section 4
  28. 431Request Header Fields Too Large

    The server will not process the request because one header field, or all the headers together, are too large.

    Causes
    • Too many or oversized cookies for the domain.
    • A very long Authorization token or Referer.
    • A proxy adding headers on top of an already large request.
    Fix
    Clear the site's cookies, shrink the tokens or headers, or raise the server's header size limit.
    Spec
    RFC 6585, Section 5
  29. 451Unavailable For Legal Reasons

    The server denies access to the resource because of a legal demand. The response should identify the blocking entity in a Link header with rel="blocked-by".

    Causes
    • Content blocked in a country by a court order or government demand.
    • Content withheld after a legal takedown request.
    Fix
    There is no technical fix. The response body or the blocked-by link should say who is blocking the resource and why.
    Spec
    RFC 7725, Section 3

5xx Server errors

5xx codes mean the server failed to handle a request that looked valid.

  1. 500Internal Server Error

    The server hit an unexpected condition that stopped it from fulfilling the request. It is the generic error when no more specific 5xx fits.

    Causes
    • An unhandled exception in the application code.
    • A misconfiguration, such as a missing environment variable or a broken rewrite rule.
    • A failing dependency, such as a database, that the app did not handle.
    Fix
    Check the server's application and error logs at the time of the request; the cause is there, not in the response.
    Spec
    RFC 9110, Section 15.6.1
  2. 501Not Implemented

    The server does not support the functionality the request needs, such as a request method it does not recognize for any resource.

    Causes
    • A method the server does not support at all.
    • A feature the server or API has not implemented.
    Fix
    Use a method or feature the server supports. When only one URL rejects a method, the server should send 405 instead.
    Spec
    RFC 9110, Section 15.6.2
  3. 502Bad Gateway

    A server acting as a gateway or proxy received an invalid response from the upstream server it contacted.

    Causes
    • The upstream app crashed, restarted or is not listening on the expected port.
    • The proxy points at the wrong upstream address or port.
    • The upstream closed the connection or sent a malformed response.
    Fix
    Check that the upstream service is running and reachable from the proxy, then read the proxy's error log for the upstream error.
    Spec
    RFC 9110, Section 15.6.3
  4. 503Service Unavailable

    The server cannot handle the request right now, because of a temporary overload or scheduled maintenance. It may send Retry-After.

    Causes
    • The server or app is overloaded or out of workers.
    • Maintenance mode is on.
    • No healthy backends behind a load balancer or Kubernetes Service.
    Fix
    Retry later, honouring Retry-After, and check the health of the backends and the app's capacity.
    Spec
    RFC 9110, Section 15.6.4
  5. 504Gateway Timeout

    A server acting as a gateway or proxy did not get a timely response from the upstream server it needed.

    Causes
    • A slow upstream, such as a long database query.
    • A proxy timeout shorter than the upstream's normal response time.
    • A network problem between the proxy and the upstream.
    Fix
    Find the slow request in the upstream's logs and speed it up or move it to a background job; raise the proxy timeout only if the work really takes that long.
    Spec
    RFC 9110, Section 15.6.5
  6. 505HTTP Version Not Supported

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

    Causes
    • A client forcing an HTTP version the server or a proxy does not support.
    • A malformed request line that the server reads as an unknown version.
    Fix
    Let the client negotiate the version, or force HTTP/1.1 (curl: --http1.1).
    Spec
    RFC 9110, Section 15.6.6
  7. 506Variant Also Negotiates

    The server has a content negotiation configuration error: the chosen variant is itself set up to negotiate, which would loop.

    Causes
    • A transparent content negotiation misconfiguration, such as Apache type maps.
    • Rarely seen outside experimental setups.
    Fix
    Fix the server's content negotiation setup so that each variant resolves to a concrete resource.
    Spec
    RFC 2295, Section 8.1
  8. 507Insufficient Storage

    A WebDAV response: the server cannot store what it needs to complete the request.

    Causes
    • The disk or quota on the server is full.
    • A WebDAV upload larger than the remaining quota.
    Fix
    Free space or raise the quota on the server, then retry.
    Spec
    RFC 4918, Section 11.5
  9. 508Loop Detected

    A WebDAV response: the server stopped an operation with Depth: infinity because it found an infinite loop of bindings.

    Causes
    • Collections that bind each other in a cycle.
    • A recursive PROPFIND or COPY over such a cycle.
    Fix
    Remove the binding that creates the cycle, or use a finite Depth.
    Spec
    RFC 5842, Section 7.2
  10. 510Not Extended

    The request does not meet the policy for the resource under the HTTP Extension Framework. RFC 2774 is obsoleted and historic, so the code is effectively unused.

    Causes
    • A server that still implements RFC 2774 extensions.
    • A custom server that reuses the code with its own meaning.
    Fix
    Read the response body for the extension the server asks for; most servers never send this code.
    Spec
    RFC 2774, Section 7 (obsoleted; historic)
  11. 511Network Authentication Required

    The client has to authenticate to get network access, typically through a captive portal. The network sends it, not the server you asked.

    Causes
    • Hotel, airport or café Wi-Fi with a sign-in page.
    • A corporate network access gateway.
    Fix
    Open a browser and complete the network's sign-in page, then retry.
    Spec
    RFC 6585, Section 6

Non-standard

Codes used by nginx and Cloudflare that are not registered HTTP status codes.

  1. 444No Response

    Non-standard · Also: Connection Closed Without Response

    Never sent to the client: nginx's return 444 closes the connection without any response. The number appears only in nginx's access log; the client sees an empty reply or a connection reset.

    Causes
    • An nginx rule that drops requests for unknown hosts or from bad bots.
    • Blocking or rate limiting rules written with return 444.
    Fix
    Search the nginx configuration for return 444 and check which server or location block matched your request.
    Spec
    nginx (non-standard)
  2. 499Client Closed Request

    Non-standard

    Only in nginx's access log: the client closed the connection before nginx sent the response. The client never receives this code.

    Causes
    • The user navigated away or cancelled the request.
    • A client or load balancer timeout shorter than the upstream's response time.
    • A health check that gives up too quickly.
    Fix
    Find out why the response is slow (the upstream response time in the log), or raise the client-side timeout.
    Spec
    nginx (non-standard)
  3. 520Web Server Returned an Unknown Error

    Non-standard

    Cloudflare received an empty, unknown or unexpected response from the origin server.

    Causes
    • The origin crashed or reset the connection while responding.
    • Response headers that are too large or malformed.
    • A firewall on the origin blocking Cloudflare's IP addresses.
    Fix
    Check the origin's error logs at the time of the request, and make sure the origin allows Cloudflare's IP ranges.
    Spec
    Cloudflare (non-standard)
  4. 521Web Server Is Down

    Non-standard

    The origin server refused the connection from Cloudflare.

    Causes
    • The web server process on the origin is stopped.
    • A firewall or security tool blocking Cloudflare's IP addresses.
    Fix
    Start the web server and confirm it listens on the expected port, then allow Cloudflare's IP ranges in the origin firewall.
    Spec
    Cloudflare (non-standard)
  5. 522Connection Timed Out

    Non-standard

    Cloudflare timed out while establishing a TCP connection to the origin server.

    Causes
    • The origin is overloaded and not accepting new connections.
    • A firewall silently dropping packets from Cloudflare.
    • A wrong origin IP address in the DNS record.
    Fix
    Check the origin's load and that its DNS record points at the right IP address, and allow Cloudflare's IP ranges in the firewall.
    Spec
    Cloudflare (non-standard)
  6. 523Origin Is Unreachable

    Non-standard

    Cloudflare could not reach the origin server, usually because of a DNS or routing problem.

    Causes
    • The DNS record points to a wrong or old IP address.
    • A network routing problem between Cloudflare and the origin.
    Fix
    Verify the origin IP address in the Cloudflare DNS settings and check that the origin is reachable from the internet.
    Spec
    Cloudflare (non-standard)
  7. 524A Timeout Occurred

    Non-standard

    Cloudflare connected to the origin but did not receive an HTTP response before the proxy read timeout (100 seconds by default).

    Causes
    • A slow database query or long-running request on the origin.
    • A report, export or import that takes longer than the timeout.
    Fix
    Speed up the slow request, or move long work to a background job and poll for its result.
    Spec
    Cloudflare (non-standard)
  8. 525SSL Handshake Failed

    Non-standard

    The TLS handshake between Cloudflare and the origin server failed.

    Causes
    • TLS is not set up on the origin's port 443.
    • No TLS version or cipher suite in common, or an origin that does not support SNI.
    Fix
    Install a valid certificate on the origin and make sure it accepts TLS connections with SNI on port 443.
    Spec
    Cloudflare (non-standard)
  9. 526Invalid SSL Certificate

    Non-standard

    Cloudflare is in Full (strict) SSL mode and the origin's certificate is invalid: expired, not trusted, or issued for a different hostname.

    Causes
    • An expired origin certificate.
    • A self-signed certificate that is not a Cloudflare Origin CA certificate.
    • A certificate whose names do not cover the hostname.
    Fix
    Install a valid certificate on the origin, such as a Cloudflare Origin CA certificate or one from a public CA, rather than lowering the SSL mode.
    Spec
    Cloudflare (non-standard)

How to read an HTTP status code

Every response starts with a three-digit status code. The first digit is the class, and it tells you most of what you need: whose problem it is and whether retrying can help.

  • 1xx informational: the request was received and is still being processed.
  • 2xx success: the request was received, understood and accepted.
  • 3xx redirection: the client has to take another step, usually follow a redirect.
  • 4xx client error: the request was wrong or not allowed, so sending it again unchanged fails again.
  • 5xx server error: the request looked valid but the server failed to handle it, so a retry may work.

The reason phrase after the number, such as “Not Found”, is informational only, and HTTP/2 and HTTP/3 do not send it at all. A client that gets a code it does not know treats it as the x00 code of its class, so an unknown 471 is handled as a 400 (RFC 9110, Section 15).

Status codes that look alike

  • 401 vs 403. 401 means the server does not know who you are: authenticate and try again. 403 means it knows and refuses; logging in again with the same account will not help.
  • 502 vs 504. Both come from a proxy or gateway. 502 means the upstream sent an invalid response or dropped the connection; 504 means the upstream did not answer in time.
  • 301 vs 308, 302 vs 307. 301 and 308 are permanent, 302 and 307 temporary. With 301 and 302 a client may turn a POST into a GET; with 307 and 308 the method and body are kept.
  • 404 vs 410. 404 says nothing is at the URL, without saying whether that will last. 410 says the resource was removed on purpose and is not coming back.

FAQ

Is 418 I'm a teapot a real status code?
Not as HTTP semantics. It comes from RFC 2324, an April Fools' joke protocol for coffee pots. RFC 9110 reserves 418, so it cannot currently be assigned to anything else, because some servers send it as a joke or to turn away bots.
What is a 499 error?
A code nginx writes to its access log when the client closes the connection before nginx sends the response. The client never receives it; look for a slow upstream or a short client timeout.
Which status codes are errors?
4xx codes are client errors and 5xx codes are server errors. 1xx, 2xx and 3xx are not errors, although a 3xx means the client has to follow a redirect to get the result.
Where do 520 to 526 come from?
Cloudflare. It sends them when it cannot get a good response from your origin server: the origin is down, unreachable, too slow or has a TLS problem. They are not part of the HTTP standard.
Is what I type sent anywhere?
No. The whole reference is part of the page, and the search runs in your browser, so nothing you type is sent to a server.