HTTP 422 Unprocessable Entity — What It Means

What HTTP status code 422 Unprocessable Entity means, when servers return it, and how to handle it correctly.

Published September 25, 2026

HTTP 422 Unprocessable Entity means the request is well-formed but its content fails validation rules, such as an invalid email or a missing required field.

What it means

Many APIs (Rails, Laravel, FastAPI) use it for validation errors and return a list of field messages.

Common causes: Failed validation rules; Semantic errors in a valid JSON body; Business-rule violations.

On the wire

POST /users HTTP/1.1
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/json
A typical 422 exchange.

Practical examples

Test it from the shell

curl -i https://example.com/path   # look for HTTP 422

Handling 422 in code or config

res.status(422).json({ errors: { email: ['Invalid email'] } })

How to fix it

Return field-level errors; Fix the input per the messages; Use 400 for malformed syntax.

1. Reproduce: curl -i <url>
2. Confirm the status is 422
3. Apply the fix above and re-test

Common mistakes

  • Return field-level errors
  • Fix the input per the messages
  • Ignoring the response headers that explain the details.

Key takeaways

  • 422 means Unprocessable Entity.
  • HTTP 422 Unprocessable Entity means the request is well-formed but its content fails validation rules, such as an invalid email or a missing required field.
  • Read the response headers and logs for the exact cause.

FAQ

422 vs 400?

400 is a malformed request; 422 is well-formed but invalid.

Is 422 a client or server error?

It is a client error status code, in the 4xx class.

More HTTP articles