Client Error

    HTTP 431 Request Header Fields Too Large

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

    Check a URL for HTTP 431

    Paste any URL to see whether it currently returns 431. Runs a live HTTP probe and follows redirects.

    TL;DR

    431 nearly always means the cookies for the site have grown too big. As a visitor, clear the cookies for that site. As the owner, reduce what is stored in cookies or raise the server's header limit.

    What does HTTP 431 mean?

    HTTP 431 Request Header Fields Too Large, defined in RFC 6585, means the headers sent with the request are bigger than the server will accept, either one header or all of them together. Cookies are the usual cause: a site keeps adding to them until they pass the server's limit. Very long addresses passed along in the Referer header, and large authentication tokens, can do the same.

    Common Causes

    • •Cookies for the site that have grown past the server's limit
    • •Many cookies set by different tools on the same domain: analytics, A/B testing and consent tools
    • •A very long address being sent on in the Referer header
    • •Large authentication tokens sent in a header or a cookie
    • •A low header limit on the server, proxy or load balancer

    How to Fix It

    1. 1.As a visitor: clear the cookies for the affected site and reload
    2. 2.As the owner: find which cookies are large, in the browser's developer tools under Application, then Cookies
    3. 3.Store session data on the server and keep only a short identifier in the cookie
    4. 4.Raise the limit if the headers are legitimately large: large_client_header_buffers in nginx, LimitRequestFieldSize in Apache, --max-http-header-size in Node.js
    5. 5.Check every layer: a CDN or load balancer in front of the server may have a lower limit of its own

    SEO Impact

    Crawlers send small headers and no cookies, so 431 rarely affects indexing. It affects real visitors, often the most loyal ones, because their cookies have had the longest to grow.

    Monitor HTTP 431 with LemWatch

    431 is invisible to a simple uptime check, which sends no cookies. If returning visitors report errors while checks stay green, look at the size of the cookies your site sets.

    Frequently Asked Questions about HTTP 431

    Why does the site work in a private window but not normally?

    A private window starts with no cookies, so the request headers are small. That is strong evidence that oversized cookies are causing the 431 in the normal window.

    Free Website Tools

    Check your site for common issues that cause HTTP errors: