422 Unprocessable Entity JSON response example
Last updated 2026-05-20
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.
GET
/http/422/Unprocessable+entity{
"hint": "Click 'Run' to call the live endpoint"
}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;
}[];
}