HTTP Reference

HTTP 400 Bad Request

The server could not process the request due to malformed syntax.

Common Causes

  • Invalid JSON body.
  • Missing required query parameters.
  • Unsupported parameter format.

Debugging Notes

  • Log the exact request body and headers sent by the client.
  • Validate schema at the API boundary for clearer errors.

Example Response

{
  "status": 400,
  "error": "Bad Request",
  "message": "Invalid JSON body"
}