KausateKausate Docs
Shared

ValidationErrorResponse

The body of a 422 request-validation response.

Identical to the standard error body except that detail is a list of per-field errors rather than a string. code and request_id are present here exactly as they are on every other error body.

Returned by: a call that fails, as its error response. See Errors.

Fields

detail

One entry per rejected field. Wording may change; do not match on it.

Type: array of ValidationErrorItem · Required: yes

code

Stable dotted error code. Branch on this, or on one of its dot-separated prefixes — codes are published at full leaf depth, so a specific code may appear where a shorter one used to.

Type: string · Required: yes · Example: "request.invalid"

request_id

Correlation id for this request, also returned in the X-Request-Id header. Quote it to support to have the exact request looked up.

Type: string or null · Required: no · Example: "req_01J8Z5V4Q2X9N7B3C6D1E0F2G4"

Last updated on

On this page