Skip to main content
Ganesh Joshi
Back to Cheatsheets

HTTP status codes

Updated 2026-02-09

Common HTTP response codes: 2xx success, 3xx redirect, 4xx client error, 5xx server error. REST and APIs.

1xx Informational

  • 100 Continue

    Client should continue or ignore if finished.

  • 101 Switching Protocols

    Server switching protocol (e.g. WebSocket).

  • 102 Processing

    Processing continues (WebDAV).

  • 103 Early Hints

    Link header for preloading.

2xx Success

  • 200 OK

    Request succeeded.

  • 201 Created

    Resource created (e.g. POST).

  • 202 Accepted

    Accepted for processing; not yet completed.

  • 204 No Content

    Success, no body (e.g. DELETE).

  • 206 Partial Content

    Partial content (range request).

3xx Redirect

  • 301 Moved Permanently

    Permanent redirect; cacheable.

  • 302 Found

    Temporary redirect.

  • 303 See Other

    Redirect to another resource (usually GET).

  • 304 Not Modified

    Use cached version (conditional GET).

  • 307 Temporary Redirect

    Temporary redirect; method and body unchanged.

  • 308 Permanent Redirect

    Permanent redirect; method and body unchanged.

4xx Client error

  • 400 Bad Request

    Invalid request body or params.

  • 401 Unauthorized

    Authentication required.

  • 403 Forbidden

    No permission.

  • 404 Not Found

    Resource does not exist.

  • 405 Method Not Allowed

    HTTP method not allowed for this resource.

  • 408 Request Timeout

    Server timed out waiting for request.

  • 409 Conflict

    Request conflicts with current state.

  • 415 Unsupported Media Type

    Payload format not supported.

  • 422 Unprocessable Content

    Syntax valid but semantic errors.

  • 429 Too Many Requests

    Rate limit exceeded.

5xx Server error

  • 500 Internal Server Error

    Server-side failure.

  • 501 Not Implemented

    Server does not support the functionality.

  • 502 Bad Gateway

    Invalid response from upstream.

  • 503 Service Unavailable

    Overloaded or down.

  • 504 Gateway Timeout

    Upstream did not respond in time.

  • 505 HTTP Version Not Supported

    HTTP version not supported.

HTTP status codes | Cheatsheet | Ganesh Joshi