HTTP 400 Bad Request

The server could not understand the request — malformed JSON, a missing required field, or a parameter of the wrong type.

Why you would test it

The baseline negative test. It is also the code most often used where 422 would be more accurate, so check which one your API actually sends.

Endpoints that return 400

101 endpoints in this playground answer with 400. Every one is free, needs no signup, and can be called from the browser or with curl.

…and 76 more endpoints across the catalog.

Other client error codes

All HTTP status codes · All 37 mock REST APIs · Getting started guide