The request is well-formed but contains semantic errors, typically failed validation.
422 Unprocessable Content (originally "Unprocessable Entity" from WebDAV) means the server understood the content type and the syntax was fine, but it cannot process the instructions, e.g. a JSON body with an invalid email address or a date in the past. It is the most common validation-error status in modern APIs.
:unprocessable_entity) and Laravel validation failures.errors array work well.| Header | Role |
|---|---|
Content-Type | Usually application/json or application/problem+json. |
HTTP/1.1 422 Unprocessable Content
Content-Type: application/json
{"detail": [{"loc": ["body", "email"], "msg": "value is not a valid email address"}]}