ErrorResponse
A single problem with a request. Errors arrive as an array under errorResponse.errors.
- affectedType: array integer[] | null Format: int32
Entity Ids Identifiers of the entities this error relates to, where the error is about specific records rather than a field. Omitted when not applicable.
- errorType: string | null
Code Stable machine-readable identifier for the error. This is the value to branch on.
nullfor framework-level field validation, whereerrorFieldanderrorMessagecarry the detail instead. - errorType: string | null
Field Which input caused the problem.
nullwhen the error is not tied to one field. For nested request objects this is a path, for exampleUserDetails.City. - errorType: string | null
Message Human-readable description of what went wrong. Safe to log. Wording can change between releases, so branch on
errorCoderather than on this string. - errorType: integer | null Format: int32
Number read-onlyNumeric form of
errorCode, and equally stable.nullwhenerrorCodeis null or is not one of the catalogued codes. See the Errors and Rate Limits guide for the full list. - suggestionsType: array object[] | null · ErrorSuggestion[]
What to do about this error, when Chaiz can suggest something concrete. Omitted entirely when there is no suggestion, so treat it as optional. Designed to be actionable without interpretation, which makes it useful for AI agents and automated integrations.
A concrete next step for resolving an error.
- actionType: string · ErrorSuggestionActionenum
Possible values: RetryWithAlternative (0) - RetryWithAlternative, CheckInput (1) - CheckInput, ContactSupport (2) - ContactSupport, UseDifferentEndpoint (3) - UseDifferentEndpoint
values- Retry
With Alternative - Check
Input - Contact
Support - Use
Different Endpoint
- endpointType: string | null
The endpoint to call instead. Present only for
RetryWithAlternativeandUseDifferentEndpoint, and omitted otherwise. - messageType: string | null
Written to be shown to an end user as-is, without rewording.