pingrobot

HTTP status codes

What each HTTP status code means, why servers send it, how to fix it, and what it tells an uptime monitor. Start with the overview of all classes.

1xx Informational

2xx Success

3xx Redirection

4xx Client errors

400 Bad Request

400 Bad Request means the server rejected a request it considers malformed, such as broken JSON, an invalid header or an oversized cookie.

401 Unauthorized

401 Unauthorized means the request lacks valid credentials for the resource. Learn how it differs from 403 and why a 401 must send WWW-Authenticate.

403 Forbidden

403 Forbidden means the server understood the request but refuses it, often due to WAF or bot rules, file permissions or a disabled directory listing.

404 Not Found

404 Not Found means the server has nothing at the requested URL. See common causes like broken routes, wrong document roots and soft 404s.

405 Method Not Allowed

405 Method Not Allowed means the URL exists but does not accept the HTTP method used, such as POST to a static file. The Allow header lists valid ones.

408 Request Timeout

408 Request Timeout means the server gave up waiting for the client to finish sending its request, often from slow uploads or idle connections.

409 Conflict

409 Conflict means a request clashes with the resource's current state, such as a duplicate record or an edit made against an outdated version.

410 Gone

410 Gone means a resource was removed on purpose and is not expected to return. Learn when to use it instead of 404 or a 301 redirect.

413 Content Too Large

413 Content Too Large means the request body exceeds what the server accepts, usually an upload hitting nginx's client_max_body_size or a CDN limit.

414 URI Too Long

414 URI Too Long means the requested URL is longer than the server will accept, usually from huge query strings or a redirect loop that keeps growing.

415 Unsupported Media Type

415 Unsupported Media Type means the server rejected the request body's format, usually because Content-Type is missing or not one the endpoint accepts.

421 Misdirected Request

HTTP 421 means the request reached a server that cannot answer for that hostname, usually after HTTP/2 connection reuse or a TLS/SNI mismatch.

422 Unprocessable Content

HTTP 422 means the server parsed the request body but rejected its content as invalid, typically an API validation error on a POST or PUT.

429 Too Many Requests

HTTP 429 means a client hit a rate limit and must slow down, often with a Retry-After header saying how long to wait before trying again.

431 Request Header Fields Too Large

HTTP 431 means the server refused a request because its headers were too big, most often from oversized or accumulated cookies on one domain.

451 Unavailable For Legal Reasons

HTTP 451 means access to a page is blocked because of a legal demand, such as a court order or regional law, and may apply only in some countries.

5xx Server errors