Few error messages are as unhelpful as "400 Bad Request". There is no friendly explanation and no hint about what went wrong, just a blank page telling you the server did not like what your browser sent. For visitors it is an annoying dead end; for site owners it can be a sign of broken links, faulty forms or server limits that quietly cost traffic and sales.
The good news is that 400 errors usually have a small number of causes, and most can be fixed in minutes once you know where to look.
This guide explains what a 400 error actually means, the most common causes, step-by-step fixes for visitors and site owners, and how 400 errors affect SEO in 2026.
Key Takeaways
- A 400 status means the server refused the request because it considered it a client error.
- Common causes include malformed URLs, corrupted or oversized cookies, browser extensions, large uploads and buggy forms or APIs.
- Visitors can usually fix it by checking the URL, clearing site cookies and disabling extensions.
- Site owners should check server logs, fix broken internal links and review header and upload limits.
- Google does not index URLs returning 4xx codes, so 400s on important pages need fixing quickly.
What is a 400 Bad Request error?
“The HTTP 400 Bad Request client error response status code indicates that the server would not process the request due to something the server considered to be a client error.”
— MDN Web Docs, 400 Bad Request
In other words, the server never got as far as looking for your page. It rejected the request itself. MDN lists malformed request syntax, invalid request message framing and deceptive request routing as typical reasons. The key phrase is "something the server considered to be a client error": sometimes the server's rules are what need changing.
The 400 code belongs to the 4xx family of client errors. If you want a refresher on how it relates to other codes, see our guide to HTTP status codes.
400 vs other common errors
| Status | Meaning | Typical cause | Who usually fixes it |
|---|---|---|---|
| 400 Bad Request | Request rejected as malformed or invalid | Bad URL encoding, oversized cookies, invalid form or API data | Visitor or site owner |
| 401 Unauthorized | Authentication required | Missing or invalid login | Visitor (log in) |
| 403 Forbidden | Server refuses access | Permissions, firewall or security rules | Site owner |
| 404 Not Found | No resource at this URL | Deleted page or broken link | Site owner |
| 5xx Server Error | Server failed to fulfil a valid request | Crashes, timeouts, misconfiguration | Site owner or host |
For the neighbouring errors, see our guides to fixing 404 errors and 5xx server errors.
Common causes of a 400 error
1. Malformed or badly encoded URLs
Characters such as spaces, unescaped % signs, stray brackets or doubled-up query strings can make a URL invalid. These often come from copy-pasted links, faulty URL-building code, or tracking parameters appended twice. Our guide to URL parameters covers how to keep them clean.
2. Corrupted or oversized cookies
Browsers send cookies with every request. If a site sets too many or too large cookies, the request headers can exceed the server's limit. Nginx, for example, returns a 400 error when a header field is larger than its buffer.
“A request header field cannot exceed the size of one buffer as well, or the 400 (Bad Request) error is returned to the client.”
— nginx documentation, ngx_http_core_module
Nginx's default for large_client_header_buffers is four buffers of 8K each. Marketing tags, A/B testing tools and consent platforms that each set their own cookies can push a visitor over the limit, producing messages such as "Request Header Or Cookie Too Large".
3. Browser extensions and stale data
Extensions that modify requests, such as privacy tools, ad blockers or header editors, can occasionally produce invalid requests. Outdated cached data can also cause problems after a site changes its setup.
4. File uploads that are too large
Some servers and applications respond with a 400 when an upload exceeds a configured limit, though others use 413 Content Too Large. Either way, the request is rejected before it is processed.
5. Invalid form submissions and API calls
Applications commonly return 400 when submitted data fails validation: malformed JSON, missing required fields or invalid values. A broken contact or checkout form is a conversion problem as much as a technical one.
6. Faulty redirects or rewrite rules
Server rules that build target URLs incorrectly can generate invalid requests. If you manage redirects on Apache, our guide to 301 redirects in .htaccess explains how to test them safely.
How to fix a 400 error as a visitor
- Check the URL. Look for typos, spaces, odd symbols or repeated parameters. Try navigating from the homepage instead.
- Clear cookies for that site. In your browser's site settings, delete cookies and site data for the domain only, then reload.
- Try a private window. If the page loads there, cookies, cache or extensions are the likely cause.
- Disable extensions temporarily. Re-enable them one at a time to find the culprit.
- Clear your DNS cache if the problem appeared after the site moved hosts.
- Reduce the upload size if the error appears when attaching a file.
- Contact the site if nothing works; the problem may be on their side.
How to fix 400 errors as a site owner
- Reproduce the error. Note the exact URL, browser, and whether you are logged in.
- Check server and application logs. Logs usually show the rejected request and often the reason (header too large, invalid characters, validation failure).
- Crawl your site. Use a crawler to find internal links returning 400 and fix the source links or templates generating them.
- Audit cookies. List every cookie your site and third-party tools set, remove what you do not need and shorten what remains. Our guide to third-party scripts helps identify the worst offenders.
- Review server limits. If legitimate requests are being rejected, ask your host or developer to review header buffer and upload limits.
- Test forms and APIs. Submit every form with realistic and edge-case data and confirm errors are handled gracefully, with clear messages rather than a bare 400 page.
- Check redirects and rewrite rules. Make sure targets are valid, correctly encoded URLs.
- Monitor. Set up alerts so new spikes in 4xx responses are noticed quickly; uptime monitoring tools can check key URLs for you.
Do 400 errors affect SEO?
Yes, when they hit URLs that matter. Google's documentation states that it does not index URLs returning 4xx status codes (other than 429), does not use their content, and removes already-indexed URLs that start returning a 4xx.
“Google doesn't index URLs that return a 4xx status code.”
— Google Search Central, How HTTP status codes, and network and DNS errors affect Google Search
| Scenario | SEO impact | Action |
|---|---|---|
| Random malformed URLs from bots | Negligible | Ignore unless volume is huge |
| Internal links pointing to URLs that return 400 | Wasted crawling and poor user experience | Fix the links at the source |
| Important pages returning 400 to Googlebot | Pages dropped from the index | Fix urgently and request reindexing |
| 400 caused by oversized cookies | Mostly affects returning visitors, not Googlebot | Fix for conversions and user experience |
Use the Page indexing report to spot excluded URLs, the URL Inspection tool to see what Googlebot receives, and the Crawl Stats report to track 4xx responses over time.
Common mistakes when dealing with 400 errors
- Treating every 400 as a server bug. Many are caused by one visitor's cookies or extensions.
- Raising server limits without fixing the cause. Bloated cookies hurt performance even when they no longer trigger errors.
- Returning 400 for missing pages. Use 404 or 410 for content that does not exist.
- Showing a blank error page. A helpful error page with navigation keeps visitors on your site.
- Ignoring 400s from forms. Every failed submission may be a lost lead or sale.
Related Guides
- Crawlability Issues: How to Find and Fix What Blocks Google
- Website Downtime and SEO: How to Monitor and Protect Rankings
- Semantic HTML for SEO: Tags That Help Search Engines
Frequently Asked Questions
What does 400 Bad Request mean?
It is an HTTP status code meaning the server would not process the request because it considered it a client error, such as malformed syntax, an invalid URL or oversized headers.
Is a 400 error my fault or the website's?
It can be either. Corrupted cookies, a mistyped URL or a browser extension are client-side causes. Badly built links, broken forms, faulty redirects or strict server limits are site-side causes.
How do I fix "Request Header Or Cookie Too Large"?
As a visitor, clear cookies for that site and reload. As a site owner, reduce the number and size of cookies you set, and if necessary ask your host to review header buffer limits such as Nginx's large_client_header_buffers.
Does a 400 error hurt SEO?
Google does not index URLs that return 4xx codes, and already-indexed URLs that start returning one are removed. A few odd 400s are harmless, but 400s on important pages or internal links should be fixed quickly.
What is the difference between 400 and 404?
A 404 means the server understood the request but found nothing at that URL. A 400 means the server rejected the request itself as malformed or invalid before looking for content.
Conclusion
A 400 Bad Request error means the server rejected a request it considered invalid. Visitors can usually fix it by checking the URL and clearing cookies; site owners should check logs, fix broken links and forms, trim cookies and review server limits. Keep 400s away from important pages, and your users and rankings will both benefit.
Want a full technical audit that catches 4xx and 5xx errors before they cost you traffic? Explore our SEO services or get a quote today.




