Skip to content
MtrXTools

400 Bad Request

The server could not understand the request

Seen in Browsers, APIs, web servers

The server rejected the request as malformed before trying to process it.

Common causes

  • A JSON or form body that is invalid, or sent with the wrong Content-Type.
  • Missing or invalid required parameters in an API call.
  • Oversized or corrupted cookies or headers.
  • Illegal characters in the URL, often from a value that was not URL-encoded.

How to fix it

  1. Read the response body: most APIs say which field or header is wrong.
  2. Check the Content-Type matches the body and the body parses (e.g. pipe it through jq).
  3. URL-encode query values and clear the site's cookies if only one browser is affected.
Check the response

Got a different message? Paste it into the error explainer.

Related errors

All 51 HTTP & CDN errors