4xx Client Error
Your request doesn't make sense or has mistakes in it. Check what you're sending and try again.
Use 400 when the request is malformed or framed in a way the server will not process.
POST https://api.example.test/api/users
# Body
{"name": "John"400 Bad Request
# Headers
Content-Type: application/json
# Body
{
"error": "bad_request"
}Request body contains invalid JSON syntax
POST https://api.example.test/api/users
# Headers
Content-Type: application/json
# Body
name=John&email=john@example.test400 Bad Request
# Headers
Content-Type: application/json
# Body
{
"error": "bad_request",
"message": "Request body could not be read properly."
}The request declares JSON but sends a body that mixes encoding conventions the server cannot parse as valid HTTP content.