Skip to content
Mitgliederbuch Developers

Error codes

validation_failed

Validation failed · HTTP 422

When you get this error

The data was received fine, but one or more fields are invalid, for example an email address that already belongs to another member.

What to do

Look at errors: it has field, code and message per field. Fix those fields and send the request again.

Example

application/problem+json
{
  "type": "https://developers.mitgliederbuch.de/errors/validation_failed",
  "title": "Validation failed",
  "status": 422,
  "detail": "One or more fields are invalid; see errors.",
  "instance": "/v2/members"
}

The type field is the same in every language; title and detail follow Accept-Language. Build your error handling on type.

All error codes