Account

Error guide / HTTP 400 Bad Request

How to fix an HTTP 400 Bad Request error

HTTP 400 Bad Request means the server received a request it considers malformed and refused to process it. A 500 error points to a fault on the server and a 404 to a missing page, while a 400 says the request itself is broken: the browser sent something the server could not parse. The cause is most often on the visitor's side and less often in a misconfigured proxy, CDN or server rule.

Check your site

>

What causes it

The most common cause is corrupted or oversized cookies for the domain, and LiteSpeed and Nginx then return a page headed "400 Bad Request" with the line "Request Header Or Cookie Too Large". Next come a URL with illegal characters or broken %-encoding, and request headers that grow past the server's limits. Less often the culprit is an intermediary: a misconfigured proxy or CDN (such as Cloudflare) between the visitor and the site, or an .htaccess or mod_security rule that rejects the request.

How to fix it

  1. Reload the page, then open the same URL in a private (incognito) window or in another browser. That bypasses cookies and extensions, so if the page works there, the problem is local, on your side.
  2. Clear cookies and site data for this domain only, not your whole history. Corrupted or bloated cookies are the most common cause of a 400, especially after a site has been changed or moved.
  3. Check the URL for typos, illegal characters and broken %-encoding. Type the address by hand instead of following a saved or pasted link.
  4. Run the availability check below to confirm the site responds and is not down for everyone. If the site cannot be reached at all, the problem is not in your request.
  5. Turn off browser extensions that rewrite requests (VPN, proxy, ad blockers) and try from another network or device, to rule out an intermediary that adds bad headers.
  6. If the site is yours, review your CDN or proxy settings (such as Cloudflare) and any recent changes to .htaccess or mod_security rules. Raise the header size limits in LiteSpeed or Apache if needed.

Related errors