HTTP 4xx Client Error Status Codes/HTTP 422 Unprocessable Content

Semantically invalid content

Section: Codes 422-451

HTTP 422 Unprocessable Content

text
text
curl -i -X POST https://example.com/api/users -H 'Content-Type: application/json' -d '{"email":"not-an-email"}'
Explanation

Common for validation errors in APIs where JSON is syntactically valid but semantically invalid.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Codes 422-451
HTTP 423 Locked
Resource is locked
OpenIn sheettextsame section
HTTP 424 Failed Dependency
Dependent action failed
OpenIn sheettextsame section
HTTP 425 Too Early
Replay-risk request rejected
OpenIn sheettextsame section
HTTP 426 Upgrade Required
Client must switch protocol
OpenIn sheettextsame section
HTTP 428 Precondition Required
Conditional request required
OpenIn sheettextsame section
HTTP 429 Too Many Requests
Rate limit exceeded
OpenIn sheettextsame section