As a visitor: clear the cookies for that site (most 400s, including “Request Header Or Cookie Too Large”, are caused by oversized cookies), check the URL for typos, and try a private window. As a site owner: inspect the request in your server logs; malformed URLs, invalid headers and oversized cookies are the most common causes.

The short explanation

HTTP 400 means the server received a request it considered malformed: invalid characters in the URL, a broken header, or more cookie/header data than it accepts.

For visitors the cookie case is by far the most common, which is why clearing the site's cookies fixes most 400 errors.

Signs of the problem

  • A page or API call returns “400 Bad Request.”
  • Only one site is affected; others load fine.
  • It started after being logged in a long time or after a site update.

What causes it

  • A large or corrupted cookie for that domain exceeds the server’s header-size limit.
  • A malformed URL: stray characters, bad percent-encoding, an over-long query string.
  • An invalid request header or JSON body when calling an API.
  • A browser extension injecting bad headers.

Fixes to try, in order

  1. Clear cookies and site data for that specific domain (browser Settings → Privacy → Site data), then reload.
  2. Check the URL for typos and stray characters; open the site in a private window with extensions disabled.
  3. If you are calling an API, validate the JSON body, the Content-Type and Authorization headers, and the query parameters.

Command

curl -v "https://example.com/"

The verbose output shows the exact request line and headers being sent, useful for spotting a malformed request.

How to confirm the fix: The page loads or the API returns 200 after clearing cookies or correcting the request.

This version of the error comes from Nginx-based servers when your browser sends more cookie data than the server accepts. Clear cookies for that site: click the icon left of the address bar → Site settings → Delete data, then reload. Site owners can reduce cookie size or raise large_client_header_buffers in Nginx.

Prevent it from coming back

Keep request URLs and headers within limits, and periodically clear cookies for sites you keep signed into.