Skip to content

Validation failed (validation_failed)

Type: https://docs.cafaye.com/errors/validation_failed

HTTP status: 422

Title: Validation failed

A reserved code. The status is fixed at 422 by the contract, so a client that sees this code can act on the status without reading further.

{
"type": "https://docs.cafaye.com/errors/validation_failed",
"title": "Validation failed",
"status": 422,
"detail": "email is not a deliverable address",
"instance": "/v1/example",
"code": "validation_failed",
"trace_id": "0af7651916cd43dd8448eb211c80319c",
"errors": [
{
"field": "email",
"code": "invalid_format"
}
]
}

Contract infrastructure — this URI is permanent. PLAN §1 stability rule 2 / DECISIONS.md MD30 exempts docs.cafaye.com/errors/<code> from every docs redesign and path rewrite: a client may store this URI and dereference it years later. The only permitted change is the addition of a new <code>.

See also: the error contract index and core’s OpenAPI conventions.