HTTP Status Codes Reference

Interactive guide to all standard 1xx–5xx HTTP response status codes and Cloudflare edge errors.

Category:
100Continue
RFC 9110 §15.2.1

Initial request received, client should continue with request body.

101Switching Protocols
RFC 9110 §15.2.2

Server agrees to switch protocols (e.g., Upgrade to WebSocket).

200OK
RFC 9110 §15.3.1

Standard response for successful HTTP requests with a response body.

201Created
RFC 9110 §15.3.2

Request succeeded and led to the creation of a new resource (POST / PUT).

204No Content
RFC 9110 §15.3.5

Request succeeded but returns no response body (common for DELETE / PATCH).

206Partial Content
RFC 9110 §15.3.7

Delivering part of the resource due to Range header sent by client (video streaming).

301Moved Permanently
RFC 9110 §15.4.2

The resource has permanently moved to a new URL. Search engines transfer SEO link equity.

302Found (Temporary Redirect)
RFC 9110 §15.4.3

Temporary redirect. Search engines do not transfer link equity.

304Not Modified
RFC 9110 §15.4.5

Cached version is still fresh according to ETag / If-Modified-Since headers.

307Temporary Redirect
RFC 9110 §15.4.8

Temporary redirect where the HTTP method (POST, PUT) must NOT change to GET.

308Permanent Redirect
RFC 9110 §15.4.9

Permanent redirect preserving the original HTTP method (POST stays POST).

400Bad Request
RFC 9110 §15.5.1

Server cannot process request due to malformed syntax, invalid JSON, or missing parameters.

🔧 Troubleshooting:Verify client payload, JSON syntax, and required headers.
401Unauthorized
RFC 9110 §15.5.2

Authentication is required and has either failed or has not yet been provided.

🔧 Troubleshooting:Check Bearer token, session cookie, or Authorization header.
403Forbidden
RFC 9110 §15.5.4

Client identity is known, but the client does not have permission to access the resource.

🔧 Troubleshooting:Inspect user roles, CORS settings, or WAF IP block rules.
404Not Found
RFC 9110 §15.5.5

Server cannot find the requested resource. Endpoint URL may be mistyped.

🔧 Troubleshooting:Check route definitions, URL rewrite rules, and trailing slashes.
405Method Not Allowed
RFC 9110 §15.5.6

HTTP method used is not supported by the target resource (e.g. POST on a GET-only route).

408Request Timeout
RFC 9110 §15.5.9

Server timed out waiting for the client to complete sending the request.

429Too Many Requests
RFC 6585 §4

Rate limit exceeded. Client has sent too many requests in a given time window.

🔧 Troubleshooting:Inspect Retry-After response header and implement exponential backoff.
500Internal Server Error
RFC 9110 §15.6.1

Generic catch-all error indicating unhandled exception or crash in server application code.

🔧 Troubleshooting:Check application backend logs, database connections, and uncaught exceptions.
502Bad Gateway
RFC 9110 §15.6.3

Reverse proxy (Nginx, Cloudflare) received an invalid response from upstream server.

🔧 Troubleshooting:Verify Node/Python/Go upstream service is listening on the configured port.
503Service Unavailable
RFC 9110 §15.6.4

Server is overloaded, down for maintenance, or scaling capacity.

504Gateway Timeout
RFC 9110 §15.6.5

Reverse proxy or load balancer timed out waiting for upstream server to respond.

🔧 Troubleshooting:Optimize slow SQL queries, long-running background tasks, or increase proxy timeout.
520Web Server Returned an Unknown Error
Cloudflare 5xx

Cloudflare proxy received an empty or unparseable response from the origin server.

🔧 Troubleshooting:Check web server crash logs or HTTP response header size limits.
521Web Server Is Down
Cloudflare 5xx

Origin server refused the TCP connection from Cloudflare's edge IP addresses.

🔧 Troubleshooting:Ensure port 80/443 is open and Cloudflare IPs are not blocked in iptables/fail2ban.
522Connection Timed Out
Cloudflare 5xx

TCP handshake between Cloudflare and origin server timed out.

🔧 Troubleshooting:Check server load, firewall rate limits, and network routing.
524A Timeout Occurred
Cloudflare 5xx

Cloudflare connected, but origin did not send HTTP response within 100 seconds.

🔧 Troubleshooting:Offload long operations to asynchronous background queues.