HTTP · Bad Request

HTTP Error Code 400

The server cannot process the request because the syntax or parameters are invalid.

warningLast verified 2026-11-08RFC 9110: HTTP Semantics
Quick answer

The server cannot process the request because the syntax or parameters are invalid.

Code400
ProductHTTP
Company / originIETF / IANA · International standard
CategoryProtocols & Standards
Platform / versionsHTTP/1.1, HTTP/2, HTTP/3 · All HTTP versions
Severitywarning
Official sourceRFC 9110: HTTP Semantics ↗
Last verified2026-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

  1. Step 1

    Log the raw body, headers, and URL at the client, then compare them with the API schema.

  2. Step 2

    Validate required fields and send the correct Content-Type before retrying.

  3. Step 3

    Read the response body for a field-level error and correct only the invalid input.

When to escalate

Before you escalate: If the same status persists after you have checked the request, the server logs, and the upstream service, contact the API or hosting provider with the full response headers, request ID, timestamp, and a minimal reproduction.

Related codes

CodeNameWhat it means
415Unsupported Media TypeThe request body format is not supported by the server.
422Unprocessable ContentThe request is syntactically valid but fails semantic validation.
401UnauthorizedAuthentication is missing, expired, or invalid.
403ForbiddenThe server understood the request but refuses to authorize it.
404Not FoundThe 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.