422
⚠️ Client Error RFC 9110, Section 15.5.21
Unprocessable Content
The server understands the content type and syntax but cannot process the contained instructions.
Common Use
Very common in REST APIs. Validation errors: missing required fields, invalid values, business rule violations. The request is syntactically correct but semantically invalid.
API Endpoint
https://codes.uncodigo.com/http/422 Example with curl
curl -i https://codes.uncodigo.com/http/422 Try It
GET /http/422 Click "Send Request" to see the response...
Example
Request
POST /api/users HTTP/1.1
{"email": "not-an-email"} Response
HTTP/1.1 422 Unprocessable Content
{"errors": {"email": "Invalid format"}}