screen size not supported

422 Unprocessable Entity JSON response example

Last updated 2026-05-20

When to use this

Use this when the request parsed correctly but failed business validation. The body is identical in spirit to the validation-error page but tied to the 422 status semantics specifically.

Example JSON

Same body as validation-error, but always returned with HTTP 422.
{
  "status": 422,
  "error": "Unprocessable Entity",
  "message": "Cart cannot be checked out",
  "code": "cart_invalid",
  "errors": [
    {
      "field": "items[0].quantity",
      "message": "Quantity exceeds stock"
    },
    {
      "field": "shippingAddress",
      "message": "Shipping address is required"
    }
  ]
}

Request examples

const res = await fetch('https://jsonexamples.com/http/422/Unprocessable+entity');
if (!res.ok) {
  const err = await res.json();
  console.error(res.status, err.message);
}

Try the live endpoint

Click below to call /http/422/Unprocessable+entity from your browser.

// click the button to populate this block

Common variations

Single business-rule violation
{
  "status": 422,
  "error": "Unprocessable Entity",
  "message": "Email already in use",
  "code": "email_taken"
}

Convert this JSON

Generated starting points for TypeScript, JSON Schema, and Zod. Refine before shipping to production.

export interface 422Unprocessable {
  "status": number;
  "error": string;
  "message": string;
  "code": string;
  "errors": {
    "field": string;
    "message": string;
  }[];
}