422Unprocessable Content
The request was understood perfectly, but its contents failed validation, so it cannot be acted on.
Browse all HTTP status codesWhen you see it
Well-formed JSON with a missing required field, an email address in a valid string that is not a valid address, or a date that parses but falls outside an allowed range. The syntax is fine; the meaning is not.
This distinction is worth keeping. A 400 tells a client its request was garbled, which sends developers looking at serialisation. A 422 tells them the request arrived intact and a specific value was rejected, which is usually the truth and saves a lot of time.
Often confused with
Look up another one
Open
Type a code, a partial code like 40, or any word from a name or description. Everything runs in your browser.
69 of 69 codes. Click a row to copy it.