422 Unprocessable Content

HTTP 422 Unprocessable Content is a 4xx client error status. The body is well-formed but its content fails validation.

422Status code
4xxClient error
NoCacheable by default
RFC 9110 §15.5.21Defined in

Common causes

What to do

Return field-level errors so the client can show them.

Example response

HTTP/1.1 422 Unprocessable Content
Content-Type: application/problem+json

{"status":422,"title":"Unprocessable Content"}

Returning 422 in code

Express   res.status(422).json({ … });
Flask     return jsonify(…), 422
PHP       http_response_code(422);
Go        w.WriteHeader(422)
nginx     return 422;

Other 4xx codes

Frequently asked questions

What does HTTP 422 mean?
The body is well-formed but its content fails validation.
Is 422 an error?
Yes. It is a client error: the request needs to change before retrying.
Does a 422 hurt SEO?
If search engines see it repeatedly on pages that should rank, those pages can be dropped from the index. Fix it quickly.