422 Unprocessable Content
Well-formed but semantically invalid (validation errors).
Common causes
- Valid syntax but invalid data: bad email format, value out of range
- API business validation failed
How to fix
- Read the per-field error list in the response body
- Validate data on the client before sending
Detailed reference (MDN) ↗RFC 9110 §15.5.21 ↗
Which code should I use?
- 400 / 422: 400: the request is malformed (broken JSON, missing required parameter). 422: the syntax is fine but the data is invalid (bad email format, value out of range).
