ClavianAPI errors
All error codes

400 Bad Request

Validation failed

Code
validation_failed
Status
400 Bad Request
Type
https://errors.clavian.io/validation-failed

What it means

The request could not be understood as written: a field is missing, has the wrong type or is out of range, or the query names a parameter the endpoint does not take. errors[] lists each field that failed and why.

What to do

Correct what errors[] names, showing each message beside its field, and send the request again. The same request sent unchanged fails the same way.

Example

The API answers with status 400 and this body, as application/problem+json. errors has one entry for each field that failed. A detail may be added, saying what went wrong this time; it is for people, and changes.

{
  "type": "https://errors.clavian.io/validation-failed",
  "title": "Validation failed",
  "status": 400,
  "code": "validation_failed",
  "requestId": "req_01k5znw4hmfay8vvr14d2pf2db",
  "errors": [
    {
      "field": "amount",
      "code": "min",
      "message": "must be ≥ 1"
    }
  ]
}

Endpoints that return it

94 endpoints in the OpenAPI document name it among their answers.

All 94 endpoints