Developer Reference

HTTP Status Codes Reference

HTTP status codes reference: complete list of 1xx, 2xx, 3xx, 4xx, and 5xx response codes for web developers. Free and searchable.

HTTP status codes are three-digit responses your browser and APIs send back to indicate the outcome of a request. Understanding these codes is essential for debugging web applications, interpreting API behaviour, and writing resilient client code. This reference covers all official status codes across all classes.

1xx — Informational

CodeNameMeaning
100ContinueClient should continue with the request body.
101Switching ProtocolsServer is switching protocols as requested (e.g. to WebSocket).
102ProcessingServer has received the request but no response is available yet (WebDAV).
103Early HintsPreload hints sent before the final response.

2xx — Success

CodeNameMeaning
200OKStandard success response.
201CreatedRequest succeeded and a new resource was created.
202AcceptedRequest accepted for processing, not yet completed.
204No ContentSuccess, but there is no body to return.
206Partial ContentServer is delivering part of the resource (range request).

3xx — Redirection

CodeNameMeaning
301Moved PermanentlyResource has permanently moved to a new URL.
302FoundResource temporarily under a different URL.
303See OtherGet the resource from another URL with GET.
304Not ModifiedCached version is still valid; no body sent.
307Temporary RedirectTemporary redirect that preserves the HTTP method.
308Permanent RedirectPermanent redirect that preserves the HTTP method.

4xx — Client Errors

CodeNameMeaning
400Bad RequestMalformed request syntax or invalid framing.
401UnauthorizedAuthentication required or failed.
403ForbiddenAuthenticated but not allowed to access.
404Not FoundResource does not exist at this URL.
405Method Not AllowedHTTP method not supported for this resource.
408Request TimeoutServer timed out waiting for the request.
409ConflictRequest conflicts with the current server state.
410GoneResource permanently removed with no forwarding.
415Unsupported Media TypePayload format is not supported.
418I'm a teapotApril Fools joke code (RFC 2324); occasionally used.
422Unprocessable EntityRequest understood but semantically invalid.
429Too Many RequestsRate limit exceeded.

5xx — Server Errors

CodeNameMeaning
500Internal Server ErrorGeneric server-side failure.
501Not ImplementedServer does not support the functionality.
502Bad GatewayInvalid response from an upstream server.
503Service UnavailableServer overloaded or down for maintenance.
504Gateway TimeoutUpstream server did not respond in time.
507Insufficient StorageServer cannot store the representation (WebDAV).

How this reference is used

  • Debugging API integration when your client receives unexpected response codes
  • Understanding server error logs and determining whether to retry a failed request
  • Implementing proper error handling in applications based on response code classes
  • Designing API error responses that follow HTTP standards and are predictable to consumers

Frequently asked questions

What is the difference between 4xx and 5xx status codes?

4xx codes indicate a client-side error (invalid request, missing auth, resource not found), meaning the client should not retry without changes. 5xx codes indicate server-side errors, suggesting the server failed to fulfil a valid request and the client may retry later.

When should I use 301 vs 302 redirects?

Use 301 (Moved Permanently) for permanent URL changes and SEO migrations, as search engines and browsers will cache the redirect. Use 302 (Found) for temporary redirects that may change, ensuring clients re-check the original URL later.

Why do some APIs return 200 with an error message instead of 4xx or 5xx?

Some older APIs return 200 to avoid triggering error handlers, placing error details in the response body instead. This is a poor practice; modern REST APIs should use appropriate status codes to signal failures, enabling proper error handling on clients.

More developer references

FreeToolz Editorial Team · Last reviewed July 2026

Compiled and checked against the relevant standards. Free to use and reference — this page runs entirely in your browser.