HTTP status code

400

Bad Request

The server could not understand the request because it is malformed.

What 400 means

The server received your request but could not parse it. Something about the syntax is wrong — not the destination, not your permissions, the request itself. This is the generic client-error catch-all, which makes it one of the less informative codes to receive.

Common causes

How to fix it

Reproduce the request with curl and inspect exactly what is being sent, rather than what you believe is being sent. Validate any JSON body independently. If it only happens for some users, suspect oversized cookies and try in a private window — that isolates it immediately.

Catching 400 before your users report it

A 400 from your own API in a monitor usually means the monitor is misconfigured rather than the service being down. Check the request body and headers on the monitor before assuming a real fault.

Monitor for 400 responses free

Often confused with

← All HTTP status codes

400 Bad Request — questions

Is a 400 error my fault or the server's?

By definition it is attributed to the client — the server is saying it could not parse what it received. In practice the cause is often a server-side validation rule that is stricter than documented, so it is worth checking both sides.

How do I fix a 400 error as a website visitor?

Clear the site's cookies and try again. Oversized or corrupted cookies are the most common cause a visitor can actually resolve. Loading the page in a private window is the quickest way to confirm that is the problem.

Know about 400 errors immediately

Pingura checks your endpoints from five regions and alerts on the status code, not just reachability.

Get Started Free