400 Bad Request · type invalid_request
When it happens
The body of a POST couldn’t be parsed as JSON: a trailing comma, a single-quoted string, or a body built by string concatenation. (An empty body is read as {} and then fails validation instead.)
What to do
Serialize the body with your language’s JSON library, and send Content-Type: application/json.
Example
400 Bad Request