snakereach

Errors

400 Malformed request

The request body was not valid JSON.

What causes it

  • The body was empty, truncated, or not JSON at all.
  • A `content-type: application/json` header was sent with a non-JSON body.

How to fix it

  1. Check that your client is serializing the body, not sending an object directly.
  2. With curl, make sure `-d` is quoted so the shell does not mangle the braces.

What it looks like

400 response
{
  "type": "https://snakereach.com/errors/invalid-request",
  "title": "Invalid request",
  "status": 400,
  "detail": "The request body was not valid JSON."
}

See also

Quickstart · All errors