Reference Guide

    HTTP Status Codes

    Complete reference for every HTTP status code. What they mean, why they happen, and how to fix them.

    1xx Informational

    The request was received and the process is continuing.

    2xx Success

    The request was successfully received, understood, and accepted.

    3xx Redirection

    Further action needs to be taken to complete the request.

    4xx Client Error

    The request contains bad syntax or cannot be fulfilled by the server.

    400
    Bad Request

    The server could not understand the request due to invalid syntax or malformed data.

    401
    Unauthorized

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

    403
    Forbidden

    The server understood the request but refuses to fulfil it — different from 401 in that authentication won't help; you simply don't have permission.

    404
    Not Found

    The requested resource could not be found on the server — the page may have been deleted, moved, or the URL was typed incorrectly.

    405
    Method Not Allowed

    The HTTP method used is not supported for the requested resource.

    406
    Not Acceptable

    The server cannot produce a response in a format the request said it would accept. On shared hosting it is very often a security rule blocking the request.

    408
    Request Timeout

    The server timed out waiting for the request from the client.

    409
    Conflict

    The request could not be completed because it conflicts with the current state of the resource, such as a duplicate record or an edit made on an out-of-date copy.

    410
    Gone

    The resource has been permanently removed and will not return — the explicit "deleted forever" status code, processed by search engines faster than 404.

    412
    Precondition Failed

    A condition the client attached to the request, such as If-Match, was not true, so the server did not carry the request out.

    413
    Payload Too Large

    The request body is larger than the server is willing to accept.

    414
    URI Too Long

    The URL provided was too long for the server to process.

    415
    Unsupported Media Type

    The server refuses the request because the body is in a format it does not support, or the Content-Type header is missing or wrong.

    416
    Range Not Satisfiable

    The request asked for a part of a file that does not exist, usually a byte range beyond the end of the file.

    418
    I'm a Teapot

    The server refuses to brew coffee because it is, permanently, a teapot.

    421
    Misdirected Request

    The request reached a server that is not set up to answer for that hostname, usually because an HTTP/2 connection was reused for a different site.

    422
    Unprocessable Entity

    The server understands the request but cannot process the contained instructions.

    426
    Upgrade Required

    The server will not handle the request over the current protocol and tells the client which protocol to switch to.

    429
    Too Many Requests

    The client has sent too many requests in a given time window — the canonical rate-limiting and abuse-protection status code.

    431
    Request Header Fields Too Large

    The server refused the request because its headers are too large, most often because of oversized cookies.

    451
    Unavailable For Legal Reasons

    The resource is unavailable due to legal reasons — government censorship, court orders, DMCA takedowns, or regional compliance restrictions.

    499
    Client Closed Request

    A code nginx writes to its logs when the client closed the connection before the server had answered. Visitors never see it.

    5xx Server Error

    The server failed to fulfil an apparently valid request.

    500
    Internal Server Error

    The server encountered an unexpected condition that prevented it from fulfilling the request — the generic catch-all for any unhandled server-side failure.

    501
    Not Implemented

    The server does not support what the request needs, most often an HTTP method it does not recognise.

    502
    Bad Gateway

    A server acting as a gateway or proxy received an invalid response from the upstream server — common with Nginx, Cloudflare, and load balancers.

    503
    Service Unavailable

    The server is temporarily unable to handle the request — used for planned maintenance, overload, or rate limiting. Implies the server will recover.

    504
    Gateway Timeout

    A proxy or gateway server didn't receive a response from the upstream server in time — the "slow backend" failure mode that's different from 502 (broken backend).

    505
    HTTP Version Not Supported

    The server does not support the version of HTTP used in the request. A badly formed address in the request is a common hidden cause.

    507
    Insufficient Storage

    The server cannot store the representation needed to complete the request.

    508
    Loop Detected

    The server detected an infinite loop while processing the request.

    511
    Network Authentication Required

    The client needs to authenticate to gain network access (e.g., captive portal).

    521
    Web Server Is Down

    The origin web server has refused or is not responding to Cloudflare's connection.

    522
    Connection Timed Out

    Cloudflare could not negotiate a TCP handshake with the origin server.

    523
    Origin Is Unreachable

    Cloudflare could not reach the origin server, likely due to DNS issues.

    524
    A Timeout Occurred

    Cloudflare established a TCP connection to the origin but the origin did not reply with an HTTP response in time.

    Free Website Tools

    Test your site for common issues that cause HTTP errors:

    HTTP Status Codes FAQ

    Common questions about HTTP response codes

    Catch HTTP Errors Before Your Users Do

    LemWatch monitors your site 24/7 and alerts you instantly when pages return error status codes.