AltUtils

HTTP Status Codes

Searchable reference of every HTTP status code from 100 to 511 with meanings, common causes, SEO impact and how to fix them.

CategoryWeb & SEO
Sheet37 / 42
ProcessingIn your browser

62 IANA-registered codes and 26 unofficial ones.

1xx Informational

Interim responses: the request was received and processing continues. The final status code follows.

100Continue

1xx InformationalRFC 9110 §15.2.1

The server received the request headers and the client should go ahead and send the request body. Only sent when the client asked with Expect: 100-continue.

Common causes

  • The client sent Expect: 100-continue before a large upload (curl does this automatically for large request bodies).
  • The server wants to confirm it will accept the body before the client transmits it.

When to use

  • Normally handled transparently by HTTP libraries.
  • If uploads stall for about a second before starting, a proxy may not answer the Expect header — disable it in the client (e.g. curl -H "Expect:").

101Switching Protocols

1xx InformationalRFC 9110 §15.2.2

The server agrees to switch to the protocol named in the client's Upgrade header, most commonly to open a WebSocket connection.

Common causes

  • A WebSocket handshake (Upgrade: websocket).
  • An HTTP/1.1 Upgrade to another protocol such as h2c.

When to use

  • Expected for WebSockets — the connection then speaks the new protocol.
  • If WebSockets fail behind a reverse proxy, make sure it forwards the Upgrade and Connection headers (nginx: proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade").
  • HTTP/2 and HTTP/3 don't use 101; WebSockets over them use extended CONNECT instead.

102Processing

1xx InformationalRFC 2518WebDAVDeprecated

An interim WebDAV response telling the client the server has accepted the request and is still working on it, so the client shouldn't time out.

Common causes

  • Long-running WebDAV operations such as copying or deleting large collections.

When to use

  • Rarely seen today: it was dropped from the WebDAV spec in RFC 4918 and most clients ignore it. Use 202 Accepted plus a status endpoint for long tasks.

103Early Hints

1xx InformationalRFC 8297

An interim response carrying Link headers (preload, preconnect) so the browser can start fetching critical resources while the server is still preparing the final response.

Common causes

  • The server or CDN is configured to send early hints for stylesheets, fonts or third-party origins.

When to use

  • Use it for resources that every page needs, such as the main CSS file or font origin.
  • Chromium-based browsers act on Early Hints only over HTTP/2 and HTTP/3, and only for preconnect and preload.

SEO impact: No direct ranking effect, but starting critical downloads earlier can improve Largest Contentful Paint (a Core Web Vitals metric).

2xx Success

The request was received, understood and accepted.

200OK

2xx SuccessRFC 9110 §15.3.1

The request succeeded. For GET the body contains the resource; for POST it contains the result of the action.

Common causes

  • A normal, successful request.

When to use

  • Use for successful responses that return a body.
  • Don't return 200 for errors ("200 OK" with an error page) — clients, caches and crawlers will treat the error as real content.

SEO impact: Pages returning 200 can be indexed. If a "not found" or empty page returns 200, Google reports it as a soft 404 — return a real 404 or 410 instead.

201Created

2xx SuccessRFC 9110 §15.3.2

The request succeeded and created a new resource. The Location header should point to it.

Common causes

  • A POST (or PUT) that created a record, file or account.

When to use

  • Return it from create endpoints with a Location header and, usually, the created representation in the body.

202Accepted

2xx SuccessRFC 9110 §15.3.3

The request was accepted for processing, but processing hasn't finished (and may still fail).

Common causes

  • Asynchronous jobs: video encoding, report generation, bulk imports, queued webhooks.

When to use

  • Return a link where the client can poll the job status (e.g. a Location or Content-Location header), or notify via webhook when done.

203Non-Authoritative Information

2xx SuccessRFC 9110 §15.3.4

The request succeeded, but a transforming proxy modified the origin server's 200 response.

Common causes

  • A proxy or mobile operator gateway rewrote, compressed or filtered the content.

When to use

  • Rarely used. Send Cache-Control: no-transform if intermediaries must not modify your responses.

204No Content

2xx SuccessRFC 9110 §15.3.5

The request succeeded and there is intentionally no response body.

Common causes

  • DELETE requests, saves via PUT/PATCH, analytics beacons and CORS preflight responses.

When to use

  • Use when there's nothing to return. The response must not contain a body.
  • Browsers stay on the current page when a form submission returns 204.

SEO impact: Google treats a 204 as "no content" and Search Console may report the URL as a soft 404 — don't use it for pages meant to be indexed.

205Reset Content

2xx SuccessRFC 9110 §15.3.6

The request succeeded and the client should reset the document view, for example clear a form for new input.

Common causes

  • Form-entry applications that want the input cleared after submission.

When to use

  • Little browser support — most apps clear forms in JavaScript and return 200 or 204 instead.

206Partial Content

2xx SuccessRFC 9110 §15.3.7

The server is returning only part of the resource, as requested by the client's Range header.

Common causes

  • Video and audio streaming, resumable downloads, download managers fetching chunks in parallel.

When to use

  • Expected behavior. If downloads can't be resumed or videos can't be seeked, make sure the server sends Accept-Ranges: bytes and handles Range requests.

207Multi-Status

2xx SuccessRFC 4918 §11.1WebDAV

The body is an XML document containing separate status codes for multiple resources affected by one WebDAV request.

Common causes

  • WebDAV PROPFIND, PROPPATCH, COPY or DELETE on collections.

When to use

  • Inspect each <response> element in the body — individual operations may have failed even though the overall status is 207.

208Already Reported

2xx SuccessRFC 5842 §7.1WebDAV

Used inside a 207 response to avoid listing the members of a WebDAV binding more than once.

Common causes

  • A PROPFIND with Depth: infinity over a collection that contains multiple bindings to the same resource.

When to use

  • Handled by WebDAV clients; no action needed.

226IM Used

2xx SuccessRFC 3229 §10.4.1

The server fulfilled a GET request and the response is the result of instance manipulations (such as a delta) applied to the current resource.

Common causes

  • HTTP delta encoding with the A-IM request header — very rarely deployed.

When to use

  • Only relevant if you implement RFC 3229 delta encoding.

3xx Redirection

Further action — usually following the Location header — is needed to complete the request.

300Multiple Choices

3xx RedirectionRFC 9110 §15.4.1

The resource has several representations (e.g. formats or languages) and the client or user should choose one.

Common causes

  • Agent-driven content negotiation, rarely implemented.

When to use

  • Prefer a single redirect or server-driven negotiation. If used, list the options in the body and optionally mark a preferred one with Location.

SEO impact: Search engines handle 300 inconsistently. For language or regional versions use hreflang annotations instead.

301Moved Permanently

3xx RedirectionRFC 9110 §15.4.2

The resource has permanently moved to the URL in the Location header. Future requests should use the new URL.

Common causes

  • Domain migrations, HTTP → HTTPS, changed URL structure, www/non-www or trailing-slash normalization.

When to use

  • Use for permanent moves of pages.
  • Browsers may change a POST into a GET when following a 301 — use 308 when the method must be preserved.
  • Avoid redirect chains: point old URLs directly to the final destination and update internal links.
  • Browsers cache 301s aggressively, so test before deploying.

SEO impact: Strong signal that the target should be the canonical URL; ranking signals are consolidated on it. Keep redirects in place for at least a year — ideally indefinitely. Googlebot follows up to 10 hops.

302Found

3xx RedirectionRFC 9110 §15.4.3

The resource is temporarily at a different URL. The client should keep using the original URL for future requests.

Common causes

  • Login redirects, temporary campaigns, A/B tests, geo- or device-based redirects.
  • Framework defaults: PHP's header('Location: …') and Express's res.redirect() send 302 unless told otherwise.

When to use

  • Use for genuinely temporary redirects.
  • Like 301, clients may switch POST to GET — use 307 to keep the method.
  • If the move is permanent, change it to 301 or 308.

SEO impact: Weak canonical signal: Google usually keeps the original URL indexed. A 302 left in place for a long time may eventually be treated as permanent, but don't rely on it.

303See Other

3xx RedirectionRFC 9110 §15.4.4

The response to the request can be found at another URL, which must be retrieved with GET.

Common causes

  • The Post/Redirect/Get pattern: after a form POST, redirect to a confirmation page so a refresh doesn't resubmit the form.

When to use

  • Use after POST, PUT or DELETE to send the user to a result page.

SEO impact: Treated like a temporary redirect (weak canonical signal).

304Not Modified

3xx RedirectionRFC 9110 §15.4.5

A conditional GET or HEAD found that the client's cached copy is still current, so no body is sent.

Common causes

  • The browser revalidated a cached file with If-None-Match (ETag) or If-Modified-Since.

When to use

  • Normal and desirable — it saves bandwidth.
  • If users see stale content, check how ETag and Last-Modified are generated and your Cache-Control max-age.

SEO impact: Tells Googlebot the content hasn't changed since the last crawl, which saves crawl resources. It has no negative effect on indexing.

305Use Proxy

3xx RedirectionRFC 9110 §15.4.6Deprecated

Originally told the client to access the resource through the proxy given in Location. Deprecated for security reasons.

Common causes

  • Legacy servers only.

When to use

  • Don't use it — browsers ignore it.

306(Unused)

3xx RedirectionRFC 9110 §15.4.7Unused

Reserved. It was used in an earlier draft (as "Switch Proxy") and is no longer used.

Common causes

  • —

When to use

  • Never send it.

307Temporary Redirect

3xx RedirectionRFC 9110 §15.4.8

The resource is temporarily at another URL, and the client must repeat the request there with the same method and body.

Common causes

  • Temporary redirects of API endpoints or form targets where POST must stay POST.
  • In Chrome DevTools, "307 Internal Redirect" usually comes from HSTS upgrading http:// to https:// inside the browser — it isn't sent by your server.

When to use

  • Use instead of 302 when the request method must not change.

SEO impact: Treated like 302: a weak canonical signal, the original URL usually stays indexed.

308Permanent Redirect

3xx RedirectionRFC 9110 §15.4.9

The resource has permanently moved, and the client must repeat the request at the new URL with the same method and body.

Common causes

  • Permanent moves of API endpoints.
  • Next.js redirects with permanent: true and some CDNs' "permanent" rules use 308.

When to use

  • Use instead of 301 when the method must be preserved. All modern browsers support it.

SEO impact: Treated like 301: a strong signal that the target should be canonical.

4xx Client error

The request is wrong or can't be fulfilled as sent: bad syntax, missing authentication, unknown resource and so on.

400Bad Request

4xx Client errorRFC 9110 §15.5.1

The server can't process the request because of a client error such as malformed syntax or invalid framing.

Common causes

  • Malformed JSON or a body that doesn't match Content-Type.
  • Invalid or missing parameters.
  • Oversized or corrupted cookies (nginx shows "400 Request Header Or Cookie Too Large").
  • Invalid characters or encoding in the URL.

How to fix

  • Validate the request against the API documentation.
  • Clear the site's cookies if a browser suddenly gets 400 on every page.
  • APIs should explain the problem in the body, e.g. with application/problem+json (RFC 9457).

SEO impact: Google doesn't index URLs that return a 4xx code (except 429), and already indexed URLs are dropped after recrawl. 4xx responses don't slow down crawling.

401Unauthorized

4xx Client errorRFC 9110 §15.5.2

The request lacks valid authentication credentials. The response must include a WWW-Authenticate header describing how to authenticate.

Common causes

  • Missing, expired or malformed Authorization header, token or API key.
  • Wrong username or password for HTTP Basic auth.
  • Clock skew making a JWT look expired or not yet valid.

How to fix

  • Send valid credentials; refresh expired tokens.
  • Remember the difference: 401 means "who are you?", 403 means "I know who you are, and the answer is no".

SEO impact: Googlebot can't index pages behind authentication. Protecting staging sites with 401 (HTTP auth) is the reliable way to keep them out of search results.

402Payment Required

4xx Client errorRFC 9110 §15.5.3

Reserved for future use. Some APIs use it for billing problems.

Common causes

  • A subscription or quota has run out in a SaaS API.
  • Stripe returns 402 when parameters were valid but the request failed, for example a declined card.

How to fix

  • Check the account's billing status or the error details in the body.

403Forbidden

4xx Client errorRFC 9110 §15.5.4

The server understood the request but refuses to authorize it. Re-authenticating won't help.

Common causes

  • File or directory permissions/ownership on the server.
  • A directory without an index file when directory listing is disabled.
  • Web application firewall, IP, country or bot-protection rules.
  • Hotlink protection or a missing/invalid CSRF token.
  • Amazon S3 returns 403 Access Denied for objects that don't exist when the caller lacks s3:ListBucket permission.

How to fix

  • Check permissions (typically 644 for files and 755 for directories), .htaccess deny rules and WAF logs.
  • Confirm the user's role actually allows the action.
  • Use 404 instead if you don't want to reveal that the resource exists.

SEO impact: Not indexed, like other 4xx codes. Never use 403 (or 404) to slow Googlebot down — use 429, 500 or 503 for rate limiting.

404Not Found

4xx Client errorRFC 9110 §15.5.5

The server can't find the requested resource. It doesn't say whether the absence is temporary or permanent.

Common causes

  • The page was deleted or moved without a redirect.
  • Broken internal or external links and typos in the URL.
  • Case-sensitive paths on Linux servers (/About vs /about).
  • Single-page apps: refreshing a client-side route when the server isn't configured to fall back to index.html.

How to fix

  • 301-redirect moved content to its closest equivalent.
  • Fix internal links; monitor 404s in server logs or Search Console.
  • Serve a helpful custom 404 page — but keep the 404 status code.

SEO impact: Normal for content that doesn't exist and doesn't hurt the rest of the site. The URL drops out of the index after recrawl. Avoid soft 404s, including mass-redirecting every missing URL to the homepage.

405Method Not Allowed

4xx Client errorRFC 9110 §15.5.6

The resource exists but doesn't support the request method. The response must include an Allow header listing the supported methods.

Common causes

  • POSTing to a static file or a GET-only route.
  • A form whose method doesn't match the server route.
  • Missing handlers for PUT, PATCH, DELETE or the CORS preflight OPTIONS request.

How to fix

  • Use one of the methods in the Allow header, or add a handler for the method on the server.

SEO impact: Google doesn't index URLs that return a 4xx code (except 429), and already indexed URLs are dropped after recrawl. 4xx responses don't slow down crawling.

406Not Acceptable

4xx Client errorRFC 9110 §15.5.7

The server can't produce a representation matching the request's Accept, Accept-Language or Accept-Encoding headers.

Common causes

  • A client demanding a single format the server doesn't offer (e.g. Accept: application/xml).
  • Some shared hosts' mod_security rules respond with 406.

How to fix

  • Relax the Accept header (or send */*), or make the server fall back to a default representation.

SEO impact: Google doesn't index URLs that return a 4xx code (except 429), and already indexed URLs are dropped after recrawl. 4xx responses don't slow down crawling.

407Proxy Authentication Required

4xx Client errorRFC 9110 §15.5.8

Like 401, but the client must authenticate with a proxy. The proxy sends a Proxy-Authenticate header.

Common causes

  • Corporate or school proxies that require credentials.

How to fix

  • Configure proxy credentials in the client, e.g. HTTPS_PROXY=http://user:pass@proxy:8080, or in the system proxy settings.

408Request Timeout

4xx Client errorRFC 9110 §15.5.9

The server didn't receive a complete request within the time it was prepared to wait and is closing the connection.

Common causes

  • Slow or interrupted networks, large uploads over slow connections.
  • Idle keep-alive connections: some servers send 408 before closing them; browsers retry automatically.

How to fix

  • Retry the request.
  • On the server, adjust header/body timeouts (nginx: client_header_timeout, client_body_timeout) if legitimate clients are affected.

409Conflict

4xx Client errorRFC 9110 §15.5.10

The request conflicts with the current state of the resource.

Common causes

  • Creating something that already exists (duplicate username or unique key).
  • Editing an outdated version of a document.
  • Concurrent updates to the same resource.

How to fix

  • Return details so the client can resolve the conflict, e.g. reload the latest version and reapply the change.
  • For optimistic locking with ETags, 412 Precondition Failed is the more specific code.

410Gone

4xx Client errorRFC 9110 §15.5.11

The resource was intentionally and permanently removed, and there is no forwarding address.

Common causes

  • Discontinued products, expired listings or promotions, deleted accounts or content.

How to fix

  • Use when content is gone for good and has no replacement; if there is a replacement, 301-redirect to it instead.

SEO impact: Removed from the index like a 404. Google treats 404 and 410 almost identically; a 410 may be processed slightly faster.

411Length Required

4xx Client errorRFC 9110 §15.5.12

The server refuses the request without a Content-Length header.

Common causes

  • Chunked uploads to servers that don't accept them.
  • A POST or PUT with an empty body and no Content-Length: 0 header.

How to fix

  • Send a Content-Length header (Content-Length: 0 for an empty body).

412Precondition Failed

4xx Client errorRFC 9110 §15.5.13

A condition in the request headers (If-Match, If-Unmodified-Since, or If-None-Match for non-GET requests) evaluated to false.

Common causes

  • Optimistic concurrency: the resource changed since the client fetched its ETag.

How to fix

  • Fetch the latest version (and ETag), merge the change and retry.
  • Servers use it to prevent lost updates.

413Content Too Large

4xx Client errorRFC 9110 §15.5.14

The request body is larger than the server is willing to process. Formerly called "Payload Too Large" or "Request Entity Too Large".

Common causes

  • nginx's client_max_body_size (default 1 MB).
  • PHP's upload_max_filesize and post_max_size.
  • API gateway limits, e.g. 10 MB for Amazon API Gateway or 6 MB for synchronous AWS Lambda payloads.

How to fix

  • Raise the limit on every layer (proxy, app server, framework) or upload in chunks / directly to object storage with pre-signed URLs.

414URI Too Long

4xx Client errorRFC 9110 §15.5.15

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

Common causes

  • Huge query strings, e.g. large filter sets or data sent via GET.
  • Redirect loops that keep appending parameters.
  • Forms using method="get" for large data.

How to fix

  • Send large data in a POST body.
  • Fix redirect loops.
  • Limits are often around 8 KB (nginx large_client_header_buffers), so keep URLs well below that.

415Unsupported Media Type

4xx Client errorRFC 9110 §15.5.16

The server refuses the request because the body's Content-Type (or Content-Encoding) isn't supported.

Common causes

  • Sending JSON without Content-Type: application/json.
  • Posting multipart/form-data to an endpoint that only accepts JSON.
  • An unsupported compression encoding on the request body.

How to fix

  • Set the Content-Type the API expects and make sure the body really is in that format.

416Range Not Satisfiable

4xx Client errorRFC 9110 §15.5.17

None of the ranges in the Range header overlap the resource, e.g. a byte range beyond the end of the file.

Common causes

  • Resuming a download after the file changed or shrank.
  • Bugs in range calculation in download or streaming code.

How to fix

  • Restart the download without a Range header.
  • Servers should include Content-Range: bytes */<length> so clients know the actual size.

417Expectation Failed

4xx Client errorRFC 9110 §15.5.18

The server or a proxy can't meet the requirement in the request's Expect header.

Common causes

  • A proxy or old server that doesn't support Expect: 100-continue.

How to fix

  • Remove the Expect header from the client (e.g. curl -H "Expect:") or upgrade the intermediary.

421Misdirected Request

4xx Client errorRFC 9110 §15.5.20

The request was sent to a server that can't produce a response for this origin (scheme + host + port).

Common causes

  • HTTP/2 connection reuse: a browser reuses a connection for a second hostname covered by the same TLS certificate, but the server isn't configured for that host.
  • TLS SNI and Host header mismatches behind load balancers.

How to fix

  • Align TLS certificates and virtual-host configuration, or return 421 deliberately so the client retries on a new connection.

422Unprocessable Content

4xx Client errorRFC 9110 §15.5.21

The request is syntactically correct but semantically invalid — typically validation errors. Formerly "Unprocessable Entity" (WebDAV).

Common causes

  • Form or API validation failures: missing required fields, invalid email, value out of range.
  • Laravel (for JSON requests), Rails scaffolds and FastAPI return 422 for validation errors.

How to fix

  • Read the field-level errors in the response body and correct the input.
  • Use 400 for malformed syntax and 422 for well-formed but invalid data.

423Locked

4xx Client errorRFC 4918 §11.3WebDAV

The resource is locked (WebDAV LOCK) and can't be modified.

Common causes

  • Another user or process holds a lock on the file, e.g. a document open in an editor via WebDAV.

How to fix

  • Wait for the lock to be released or supply the lock token in the If header.

424Failed Dependency

4xx Client errorRFC 4918 §11.4WebDAV

The method couldn't be performed because it depended on another action that failed.

Common causes

  • One operation in a WebDAV PROPPATCH or batch failed, so the rest weren't applied.

How to fix

  • Find and fix the operation that failed first (look for the non-424 status in the multi-status body).

425Too Early

4xx Client errorRFC 8470 §5.2

The server won't process a request sent in TLS 1.3 early data (0-RTT) because it could be replayed.

Common causes

  • A non-idempotent request (e.g. POST) sent as 0-RTT early data.

How to fix

  • Clients retry automatically after the TLS handshake completes. Servers should only accept idempotent requests in early data.

426Upgrade Required

4xx Client errorRFC 9110 §15.5.22

The server refuses to handle the request with the current protocol; the Upgrade header names the required protocol.

Common causes

  • An endpoint that requires TLS or a newer HTTP version.
  • A WebSocket endpoint requested over plain HTTP without an Upgrade.

How to fix

  • Switch to the protocol listed in the Upgrade header.

428Precondition Required

4xx Client errorRFC 6585 §3

The server requires the request to be conditional (e.g. include If-Match) to prevent lost updates.

Common causes

  • APIs that enforce optimistic locking on PUT/PATCH/DELETE.

How to fix

  • GET the resource, read its ETag and send it back in an If-Match header.

429Too Many Requests

4xx Client errorRFC 6585 §4

The client sent too many requests in a given time (rate limiting). A Retry-After header may say how long to wait.

Common causes

  • API rate limits or quotas.
  • Login brute-force protection.
  • Scrapers, bots or misbehaving retry loops.

How to fix

  • Respect Retry-After; retry with exponential backoff and jitter.
  • Cache responses and batch requests.
  • Servers should send Retry-After (and ideally RateLimit headers) so clients can adapt.

SEO impact: Unlike other 4xx codes, Google treats 429 like a server error: Googlebot slows its crawl rate, and URLs that keep returning 429 can eventually drop out of the index.

431Request Header Fields Too Large

4xx Client errorRFC 6585 §5

The server won't process the request because a header field, or all headers together, are too large.

Common causes

  • Too many or very large cookies — common on localhost where many dev apps share cookies.
  • Huge Authorization tokens (large JWTs) or Referer URLs.
  • Node.js rejects headers above 16 KB by default.

How to fix

  • Clear cookies for the domain and keep cookies small.
  • Raise the limit if needed (Node.js: --max-http-header-size).

451Unavailable For Legal Reasons

4xx Client errorRFC 7725 §3

The resource can't be served because of a legal demand — a court order, government censorship or a regional legal restriction.

Common causes

  • DMCA or court takedowns, national blocking orders, sites blocking regions for legal compliance.

How to fix

  • Servers should explain the reason and may identify the blocking entity with a Link header (rel="blocked-by").

SEO impact: Handled like other 4xx codes: if Googlebot receives 451, the URL won't be indexed.

5xx Server error

The server failed to fulfil an apparently valid request.

500Internal Server Error

5xx Server errorRFC 9110 §15.6.1

A generic error: the server hit an unexpected condition that prevented it from fulfilling the request.

Common causes

  • Unhandled exceptions or fatal errors in application code.
  • Syntax errors in .htaccess or server configuration.
  • Failed database connections or missing environment variables.
  • Wrong permissions on scripts (e.g. CGI/PHP files).

How to fix

  • Check the application and web-server error logs — the real cause is there.
  • Reproduce with debugging enabled locally; never show stack traces to users in production.

SEO impact: 5xx responses make Googlebot temporarily slow down crawling. Indexed URLs are kept at first but are eventually dropped if the errors persist.

501Not Implemented

5xx Server errorRFC 9110 §15.6.2

The server doesn't support the functionality required to fulfil the request, typically an unrecognized request method.

Common causes

  • A method the server doesn't know (e.g. PATCH or a custom method on an old server).
  • An unsupported Transfer-Encoding.

How to fix

  • Use a supported method. Use 405 instead when the method is known but not allowed for this particular resource.

SEO impact: 5xx responses make Googlebot temporarily slow down crawling. Indexed URLs are kept at first but are eventually dropped if the errors persist.

502Bad Gateway

5xx Server errorRFC 9110 §15.6.3

A gateway or reverse proxy received an invalid response from the upstream server it forwarded the request to.

Common causes

  • The application server (PHP-FPM, Node.js, Gunicorn…) crashed, isn't running or listens on a different port/socket.
  • The upstream closed the connection early or returned malformed headers.
  • Response headers too large for proxy buffers (nginx: "upstream sent too big header").
  • Keep-alive mismatch: the app's idle timeout is shorter than the load balancer's (e.g. AWS ALB).

How to fix

  • Check that the upstream process is running and read the proxy's error log.
  • Increase proxy_buffer_size for large headers.
  • Set the app's keep-alive timeout longer than the load balancer's idle timeout.

SEO impact: 5xx responses make Googlebot temporarily slow down crawling. Indexed URLs are kept at first but are eventually dropped if the errors persist.

503Service Unavailable

5xx Server errorRFC 9110 §15.6.4

The server is temporarily unable to handle the request (overload or maintenance). A Retry-After header can say when to try again.

Common causes

  • Planned maintenance mode.
  • Overload or exhausted worker pools.
  • A load balancer with no healthy targets.
  • Auto-scaling that hasn't caught up with a traffic spike.

How to fix

  • Scale capacity and fix failing health checks.
  • For planned downtime, return 503 with Retry-After instead of a maintenance page with status 200.

SEO impact: The correct way to signal temporary downtime: Googlebot backs off and retries later. Outages of a few hours are harmless; if 5xx lasts for days, URLs start dropping from the index. A 5xx on robots.txt makes Google pause crawling the whole site.

504Gateway Timeout

5xx Server errorRFC 9110 §15.6.5

A gateway or proxy didn't receive a response from the upstream server in time.

Common causes

  • Slow database queries or external API calls.
  • Long-running requests exceeding proxy timeouts (nginx proxy_read_timeout defaults to 60 s, AWS ALB idle timeout to 60 s).
  • An upstream that hangs or is network-unreachable.

How to fix

  • Find and optimize the slow operation.
  • Move long tasks to a background job and return 202 Accepted.
  • Raise timeouts only as a last resort, and consistently across all layers.

SEO impact: 5xx responses make Googlebot temporarily slow down crawling. Indexed URLs are kept at first but are eventually dropped if the errors persist.

505HTTP Version Not Supported

5xx Server errorRFC 9110 §15.6.6

The server doesn't support the major HTTP version used in the request.

Common causes

  • A malformed request line or a client sending a protocol version the server doesn't speak.

How to fix

  • Use HTTP/1.1 or a version the server supports; check proxies that rewrite the request line.

506Variant Also Negotiates

5xx Server errorRFC 2295 §8.1

A server configuration error in transparent content negotiation: the chosen variant is itself configured to negotiate, creating a loop.

Common causes

  • Misconfigured content negotiation (e.g. Apache type maps).

How to fix

  • Fix the negotiation configuration so variants point to concrete resources.

507Insufficient Storage

5xx Server errorRFC 4918 §11.5WebDAV

The server can't store the representation needed to complete the request.

Common causes

  • Disk full or storage quota exceeded on a WebDAV/file server.

How to fix

  • Free up space or increase the quota.

508Loop Detected

5xx Server errorRFC 5842 §7.2WebDAV

The server stopped processing a request with Depth: infinity because it found an infinite loop.

Common causes

  • Circular WebDAV bindings.
  • Unrelated but common: shared hosts running CloudLinux return "508 Resource Limit Is Reached" when an account exceeds its process/CPU limits.

How to fix

  • Remove the circular binding.
  • On shared hosting, reduce concurrent processes (caching helps) or upgrade the plan.

510Not Extended

5xx Server errorRFC 2774 §7Obsolete

Further extensions to the request are required for the server to fulfil it (HTTP Extension Framework).

Common causes

  • Practically never seen; the extension framework is historic.

How to fix

  • Don't use it in new designs.

511Network Authentication Required

5xx Server errorRFC 6585 §6

The client must authenticate to gain network access — sent by captive portals, not by origin servers.

Common causes

  • Hotel, airport or café Wi-Fi login pages intercepting traffic.

How to fix

  • Open any http:// page in a browser to reach the portal and log in or accept the terms.

Unofficial & vendor-specific codes

Not registered with IANA, but used by popular servers, CDNs, load balancers and frameworks. Some (like nginx's 444 and 499) only ever appear in server logs.

418I'm a teapot

4xx Client errorRFC 2324 (April Fools)Reserved

From the 1998 April Fools' Hyper Text Coffee Pot Control Protocol: a teapot refusing to brew coffee. RFC 9110 lists 418 as "(Unused)" and reserves it because it is so widely implemented as a joke.

Common causes

  • Easter eggs, and some sites or frameworks returning it to bots and scrapers they want to turn away.

What to do

  • Don't use it for real errors — pick a meaningful 4xx code.

419Page Expired

4xx Client errorLaravel

Laravel's response when the CSRF token is missing or invalid (TokenMismatchException).

Common causes

  • A form without @csrf, an expired session, or a session cookie that isn't sent (domain, SameSite or HTTPS settings).

What to do

  • Add @csrf to forms (or the X-CSRF-TOKEN header for AJAX) and check SESSION_DOMAIN, SESSION_SECURE_COOKIE and session lifetime.

420Enhance Your Calm

4xx Client errorTwitter (legacy)

Returned by the old Twitter API v1 when a client was being rate limited. Spring Framework also once defined 420 as "Method Failure".

Common causes

  • Too many requests to legacy Twitter endpoints.

What to do

  • Use the standard 429 Too Many Requests in your own APIs.

440Login Time-out

4xx Client errorMicrosoft IIS

The client's session has expired and it must log in again.

Common causes

  • Idle sessions in Outlook Web App / Exchange and other IIS applications.

What to do

  • Log in again; adjust the session timeout if it expires too quickly.

444No Response

4xx Client errornginx

nginx-internal code: close the connection without sending any response. It appears only in nginx's access log.

Common causes

  • return 444; rules used to drop malicious, unwanted or unknown-host requests.

What to do

  • Clients see "empty reply from server" or a connection reset. If legitimate traffic is affected, review the server blocks returning 444.

449Retry With

4xx Client errorMicrosoft IIS

The request can't be fulfilled because the client didn't provide required information; it should retry after performing the appropriate action.

Common causes

  • Microsoft Exchange ActiveSync and other IIS applications.

What to do

  • Follow the instructions in the response and retry.

460Client Closed Connection

4xx Client errorAWS Elastic Load Balancing

The load balancer received a request, but the client closed the connection before the idle timeout elapsed.

Common causes

  • Client timeouts shorter than the backend's processing time, or users cancelling requests.

What to do

  • Speed up slow endpoints or align client timeouts with the load balancer's idle timeout.

463Too Many Forwarded IPs

4xx Client errorAWS Elastic Load Balancing

The load balancer received an X-Forwarded-For header with more than 30 IP addresses.

Common causes

  • Proxy loops or chains of proxies that keep appending to X-Forwarded-For.

What to do

  • Fix the proxy chain or loop so the header stays short.

494Request Header Too Large

4xx Client errornginx

nginx-internal code for a request header that exceeds its buffers. The client receives a 400 page saying "Request Header Or Cookie Too Large".

Common causes

  • Too many or very large cookies, or an oversized header such as a long JWT.

What to do

  • Clear cookies, or increase large_client_header_buffers.

495SSL Certificate Error

4xx Client errornginx

nginx-internal code: the client presented an invalid certificate during mutual TLS. The client sees a 400 page.

Common causes

  • Expired, untrusted or revoked client certificates.

What to do

  • Issue a valid client certificate from the CA configured in ssl_client_certificate.

496SSL Certificate Required

4xx Client errornginx

nginx-internal code: a client certificate is required but none was sent. The client sees a 400 page.

Common causes

  • ssl_verify_client on and the client didn't present a certificate.

What to do

  • Configure the client to send its certificate, or make verification optional.

497HTTP Request Sent to HTTPS Port

4xx Client errornginx

nginx-internal code: a plain-HTTP request arrived on a port expecting HTTPS. The client sees "The plain HTTP request was sent to HTTPS port".

Common causes

  • Using http:// with a port that only serves TLS (e.g. http://example.com:443).

What to do

  • Use https://, or redirect automatically with error_page 497 =301 https://$host$request_uri;

498Invalid Token

4xx Client errorEsri ArcGIS

ArcGIS Server's response for an expired or otherwise invalid token.

Common causes

  • Expired ArcGIS tokens.

What to do

  • Generate a new token.

499Client Closed Request

4xx Client errornginx

Logged by nginx when the client closed the connection before the server sent a response. (Esri ArcGIS separately uses 499 for "Token Required".)

Common causes

  • Users navigating away or cancelling, client or load-balancer timeouts shorter than processing time, slow upstreams.

What to do

  • Look for slow endpoints in the logs and align client, load-balancer and server timeouts.

509Bandwidth Limit Exceeded

5xx Server errorApache / cPanel

The hosting account has exceeded its bandwidth quota.

Common causes

  • Traffic spikes, hotlinked media or bots consuming the monthly allowance on shared hosting.

What to do

  • Upgrade the plan, block abusive bots, use a CDN or enable hotlink protection.

SEO impact: Seen by crawlers as a 5xx server error, so crawling slows down while it lasts.

520Web Server Returned an Unknown Error

5xx Server errorCloudflare

Cloudflare's catch-all when the origin returns an empty, unknown or unexpected response.

Common causes

  • The origin crashed or reset the connection.
  • Empty responses or very large response headers (often too many cookies).
  • Firewalls or security plugins interfering with Cloudflare's requests.

What to do

  • Check the origin's error logs at the time of the error.
  • Make sure Cloudflare's IP ranges are allowed and reproduce with the proxy temporarily paused.

SEO impact: Googlebot sees a 5xx: crawling slows and prolonged errors lead to deindexing.

521Web Server Is Down

5xx Server errorCloudflare

The origin refused Cloudflare's connection.

Common causes

  • The web server isn't running.
  • A firewall or security plugin blocks Cloudflare's IP ranges.

What to do

  • Start the web server and allowlist Cloudflare's IP ranges.

SEO impact: Googlebot sees a 5xx: crawling slows and prolonged errors lead to deindexing.

522Connection Timed Out

5xx Server errorCloudflare

Cloudflare couldn't establish a TCP connection to the origin in time.

Common causes

  • Origin overloaded or offline.
  • Firewall dropping Cloudflare's packets.
  • Wrong origin IP in the DNS record.

What to do

  • Verify the DNS record points to the right server, allowlist Cloudflare's IPs and check server load.

SEO impact: Googlebot sees a 5xx: crawling slows and prolonged errors lead to deindexing.

523Origin Is Unreachable

5xx Server errorCloudflare

Cloudflare can't reach the origin at all, typically because of routing or DNS problems.

Common causes

  • The origin IP changed or the DNS record is wrong.
  • Network routing issues between Cloudflare and the host.

What to do

  • Update the DNS record and ask the host to check routing.

524A Timeout Occurred

5xx Server errorCloudflare

Cloudflare connected to the origin but didn't receive an HTTP response before the timeout (100 seconds by default).

Common causes

  • Long-running requests: reports, exports, imports, slow database queries.

What to do

  • Run long work in the background and poll for the result.
  • Serve long-running endpoints from a non-proxied subdomain; Enterprise plans can raise the timeout.

525SSL Handshake Failed

5xx Server errorCloudflare

The TLS handshake between Cloudflare and the origin failed (Full or Full (strict) SSL mode).

Common causes

  • The origin isn't listening on port 443 or has no certificate.
  • No SNI support or no shared cipher suites.

What to do

  • Install a certificate on the origin (a free Cloudflare Origin CA certificate works) and make sure port 443 is open.

526Invalid SSL Certificate

5xx Server errorCloudflare

In Full (strict) mode, Cloudflare couldn't validate the origin's certificate.

Common causes

  • Expired, self-signed or wrong-hostname certificates on the origin.

What to do

  • Install a valid certificate (public CA or Cloudflare Origin CA) covering the hostname.

529Site Is Overloaded

5xx Server errorQualys SSL Labs, some APIs

A non-standard "overloaded" signal. Qualys SSL Labs uses it, and some APIs (for example Anthropic's) return 529 when the service is temporarily overloaded.

Common causes

  • The service is under exceptionally high load.

What to do

  • Retry later with exponential backoff.

530Origin Error (with 1xxx code)

5xx Server errorCloudflare / Pantheon

Cloudflare returns 530 together with a 1xxx error page (such as 1016 Origin DNS error) — the 1xxx code tells you the real problem. Pantheon uses 530 for a frozen site.

Common causes

  • Origin DNS problems or other Cloudflare 1xxx conditions.

What to do

  • Look up the 1xxx error number shown on the page in Cloudflare's documentation.

561Unauthorized

5xx Server errorAWS Elastic Load Balancing

An Application Load Balancer rule authenticates users, and the identity provider returned an error during authentication.

Common causes

  • Misconfigured OIDC/Cognito client settings, callback URLs or secrets.

What to do

  • Check the ALB authentication action and the identity provider's configuration.

999Request Denied

Non-standardLinkedIn

LinkedIn returns 999 to requests it believes are automated — scrapers, link checkers and some crawlers.

Common causes

  • Non-browser user agents, datacenter IPs or high request rates hitting linkedin.com.

What to do

  • Usually a false positive in broken-link reports — check the link in a browser.

SEO impact: SEO audit tools often flag LinkedIn links as broken because of 999; the links normally work for real visitors.

What is the HTTP Status Codes Reference?

An HTTP status code is the three-digit number a server sends at the start of every response to say how the request went. The first digit sets the class: 1xx informational, 2xx success, 3xx redirection, 4xx client error and 5xx server error. Clients that don't recognize a specific code treat it like the x00 code of its class, which is why a new code such as 425 Too Early can be introduced without breaking older software.

This reference lists every code in the IANA HTTP Status Code Registry — defined mostly in RFC 9110 (HTTP Semantics, 2022) plus WebDAV and other extensions — with the current official names, such as 413 Content Too Large and 422 Unprocessable Content. Each entry explains what the code means, what typically triggers it, and how to fix it or when to send it. A separate section covers widely seen non-standard codes: nginx's 444 and 499, Cloudflare's 520–526 origin errors, AWS load balancer codes, Laravel's 419 and LinkedIn's 999.

For redirects and errors the cards also describe how Google handles each code: 301 and 308 consolidate signals on the new URL while 302 and 307 usually keep the old one indexed, 404 and 410 remove pages from the index, and 429 or 5xx responses slow crawling — so 503 with a Retry-After header is the right answer during maintenance. Link to any code directly with its anchor, for example /tools/http-status-codes#404.

Frequently asked questions

What's the difference between 301 and 302 redirects?
301 Moved Permanently says the old URL is gone for good, so browsers cache the redirect and search engines move ranking signals to the new URL. 302 Found is temporary: the original URL stays the canonical one. Both may turn a POST into a GET; their method-preserving equivalents are 308 (permanent) and 307 (temporary).
Should I return 404 or 410 for deleted pages?
Both remove the page from Google's index and neither hurts the rest of your site. 410 Gone explicitly says the removal is intentional and permanent, and may be processed slightly faster; 404 is fine when you don't know or don't care. If the content moved, use a 301 redirect instead.
What's the difference between 401 and 403?
401 Unauthorized means the request isn't authenticated — log in or send a valid token and try again; the server must include a WWW-Authenticate header. 403 Forbidden means the server knows who you are (or doesn't need to) and still refuses; authenticating again won't help.
What causes 502 Bad Gateway vs 504 Gateway Timeout?
Both come from a proxy or load balancer in front of your application. 502 means the upstream sent an invalid response or closed the connection — often the app crashed or isn't running. 504 means the upstream didn't answer within the proxy's timeout — usually a slow query or long-running request.
Which status code should a site return during maintenance?
503 Service Unavailable, ideally with a Retry-After header (seconds or an HTTP date). Search engines treat it as temporary and come back later, while a maintenance page served with 200 could be indexed in place of your real content.
Is 418 I'm a teapot a real status code?
It comes from an April Fools' RFC (2324) about controlling coffee pots. It was never officially assigned, but because so many servers implement it as an easter egg, RFC 9110 reserves 418 as “unused” so it won't be given another meaning.