← Back to Home

HTTP Status Codes

Below is a comprehensive list of HTTP status codes, categorized and explained for quick reference.

2xx Success

200 OK
The request succeeded and the server returned the requested resource.
201 Created
The request succeeded, and a new resource was created.
204 No Content
The request succeeded but there is no content to return.

3xx Redirection

301 Moved Permanently
The resource has been permanently moved to a new URL.
302 Found
The resource is temporarily available at a different URL.
304 Not Modified
The resource has not been modified. Use the cached version.

4xx Client Errors

400 Bad Request
The server could not understand the request due to invalid syntax.
401 Unauthorized
Authentication is required or has failed.
403 Forbidden
The server understood the request but refuses to authorize it.
404 Not Found
The server cannot find the requested resource.
429 Too Many Requests
The user has sent too many requests in a given time frame.

5xx Server Errors

500 Internal Server Error
The server encountered an unexpected condition.
502 Bad Gateway
The server received an invalid response from the upstream server.
503 Service Unavailable
The server is not ready to handle the request (overload or maintenance).
504 Gateway Timeout
The server did not receive a timely response from the upstream server.

Cloudflare Errors

520 Web Server Returned an Unknown Error
Cloudflare received an unknown error from the origin server.
521 Web Server Is Down
The origin server refused the connection from Cloudflare.
522 Connection Timed Out
Cloudflare was able to connect to the origin server, but the server did not respond in time.
523 Origin Is Unreachable
Cloudflare could not reach the origin server. This may be due to DNS or network issues.
524 A Timeout Occurred
A connection to the origin server was established, but it took too long to respond.
525 SSL Handshake Failed
Cloudflare could not complete an SSL/TLS handshake with the origin server.
526 Invalid SSL Certificate
Cloudflare could not validate the SSL certificate on the origin server.
530 Origin DNS Error
Cloudflare could not resolve the DNS for the origin server, or the origin is unreachable due to DNS issues.