HTTP Error Code 400
The server cannot process the request because the syntax or parameters are invalid.
The server cannot process the request because the syntax or parameters are invalid.
| Code | 400 |
| Product | HTTP |
| Company / origin | IETF / IANA · International standard |
| Category | Protocols & Standards |
| Platform / versions | HTTP/1.1, HTTP/2, HTTP/3 · All HTTP versions |
| Severity | warning |
| Official source | RFC 9110: HTTP Semantics ↗ |
| Last verified | 2026-11-08 |
What does HTTP error 400 mean?
HTTP 400 means the request reached the server, but the server rejected it before running the application logic. Typical examples are malformed JSON, a missing required parameter, an invalid header, or a URL that does not match the route.
Common causes
- Malformed JSON or XML in the request body.
- A required query parameter or header is missing, or its type is wrong.
- The body does not match the API schema, or the URL contains invalid characters.
How to fix it
- Step 1
Log the raw body, headers, and URL at the client, then compare them with the API schema.
- Step 2
Validate required fields and send the correct Content-Type before retrying.
- Step 3
Read the response body for a field-level error and correct only the invalid input.
When to escalate
Related codes
| Code | Name | What it means |
|---|---|---|
415 | Unsupported Media Type | The request body format is not supported by the server. |
422 | Unprocessable Content | The request is syntactically valid but fails semantic validation. |
401 | Unauthorized | Authentication is missing, expired, or invalid. |
403 | Forbidden | The server understood the request but refuses to authorize it. |
404 | Not Found | The requested resource does not exist at this URL. |
Source & verification
This page was checked against RFC 9110: HTTP Semantics on 2026-11-08. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.
Open Error Codes is independent and not affiliated with IETF / IANA. Always confirm destructive or security-sensitive steps with the official documentation.