Expand description
Parses the server’s RFC 7807 validation problem error format.
Endpoints that expose stable error codes answer a failed request with a validation problem on
400:
{
"type": "validation_error",
"status": 400,
"errors": { "code": [{ "type": "already_organization_member", "detail": "..." }] }
}Older servers (and endpoints not yet migrated) answer with the legacy ErrorResponseModel
({ "message": "...", ... }), which carries no code and is not a validation problem.
Structs§
- Validation
Error 🔒 - A single error reported in a
ValidationProblem. - Validation
Problem 🔒 - The subset of the server’s RFC 7807 validation problem needed to extract error codes.