DELAPARRA
Index
Color
NL
Category: HTTP status codes

422 Unprocessable Entity

Explained by Updated

What is 422 Unprocessable Entity?

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.

Definition source Coders Lingo, CC BY 4.0

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.

At a glance

CategoryHTTP status codes
Explained by
Updated

More HTTP status codes terms

All terms starting with a number or symbol

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.