422 Unprocessable Content means the request is well formed but its content is not valid: the JSON parses, but the values break the server's rules.
HTTP/1.1 422 Unprocessable ContentCommon causes
- A required field is missing or empty, or a value has the wrong format, such as an invalid email.
- Business rule violations such as an end date before the start date.
- Frameworks such as Rails, Laravel and FastAPI use 422 for validation errors.
How to fix it
- Read the response body: it usually lists each invalid field.
- Validate the input against the API's schema before sending it.