The server cannot process the request due to something perceived as a client error.
The server cannot process the request due to something perceived as a client error - malformed syntax, invalid request framing, or deceptive request routing. This is one of the most common HTTP errors and indicates that the request sent to the server was somehow incorrect or corrupted and the server could not understand it.
A 400 Bad Request error occurs when the server determines that the incoming request is invalid before attempting to process it. This can happen during form submissions, API calls, file uploads, or even regular page navigation. The server's request parser rejects the request because it violates the HTTP specification or the server's validation rules.
You'll commonly see this error when submitting forms with malformed data, making API calls with incorrect JSON formatting, or when browser cookies have become corrupted.
Platform-Specific Notes:
Nginx Returns 400 when the request header or cookie is too large (default limit: 8KB). Check large_client_header_buffers directive.
Apache Triggers 400 for malformed request lines or headers exceeding LimitRequestFieldSize.
Cloudflare May return 400 if the request violates WAF rules or the hostname is missing from the Host header.
Node.js Express returns 400 when body-parser fails to parse JSON or when validation middleware rejects the input.
# Request with malformed JSON body POST /api/users HTTP/1.1 Host: example.com Content-Type: application/json Content-Length: 42 {"name": "John", "email": "john@example.com",} ^ trailing comma = invalid JSON # Server Response HTTP/1.1 400 Bad Request Content-Type: application/json { "error": "Bad Request", "message": "Invalid JSON: Unexpected token } at position 41", "statusCode": 400 }
Catch 400 errors before your users do. Monitor your APIs and web pages around the clock with instant alerts.
Start Free Monitoring