← Back to all status codes
4xx Series
Terminal (Do not automatically retry)

422 Unprocessable Entity

The request was well-formed but was unable to be followed due to semantic errors. Very common in robust REST APIs for payload validation errors.

🌍

SEO Impact

Neutral. API specific.

🔧

Common Causes

  • 1Schema validation fails (e.g., age<0 in JSON payload)
  • 2Zod/Joi validation boundaries triggered

Code Examples

Ruby (Rails)
render json: @user.errors, status: :unprocessable_entity

Related Codes