422 Unprocessable Entity: The request is well-formed, but the server cannot process it because of semantic errors. 422 Unprocessable Entity means the request was understood but failed validation. The JSON is valid, but an email address is malformed, a date lies in the past, or a required field is empty. It is the standard response for form validation errors in many frameworks. Laravel returns 422 with an errors object that lists each invalid field and its message, which a front end can display right next to the matching input.
Frequently asked questions about 422 Unprocessable Entity
What should you keep in mind with 422 Unprocessable Entity?
The distinction from 400 is practical. A 400 says the request itself is broken, which is usually a bug in the client code. A 422 says the content is not acceptable, which is usually something the user can fix. Front-end code can show friendly field-level messages for 422, and log 400 as a developer error.
Use when an HTTP request returns an unexpected status code (4xx or 5xx, or a redirect loop), when a user pastes an error like "419 Page Expired", "422 Unprocessable Content", "502 Bad Gateway" or "CORS error", or when debugging API calls between a frontend and a Laravel/PHP or Node backend. Finds the cause from the status code, headers and logs before changing code.
'Expert-level browser automation, debugging, and performance analysis using Chrome DevTools MCP. Use for interacting with web pages, capturing screenshots, analyzing network traffic, and profiling performance.'
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.