All tools

422 Unprocessable Content

Parsed fine, fails validation. The usual home of field-by-field error responses.

422Client error
What it means
Parsed fine, fails validation. The usual home of field-by-field error responses.
In practice
The request was valid JSON in the right shape — the server just rejects what it says: an email without an @, a quantity of −1, a date in the past. The response body usually itemises the failures per field. If you get 422 with an empty body, the API author owes you an apology.
Whose problem is it?
The request. Retrying it unchanged will get the same answer.

Often confused with