HTTP 4xx

400 Bad Request

The server could not understand the request, usually because it was malformed.

4xx Client errorCommonly seen

What causes it

  • Invalid syntax, a malformed URL, or a request body the server cannot parse.

How to fix it

Check the request payload, headers, and encoding. On an API, validate the JSON body against the expected schema.

Example response

A typical raw HTTP response a client receives for a 400, with the headers this code is defined around.

HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=utf-8

Know before your visitors do.

Sentinel checks your site around the clock from multiple regions and alerts you the moment it starts returning a 4xx error, so you can fix it before it costs you.