Skip to main content

ErrorEnvelope

Standard error response envelope. Returned for every failure regardless of status code, so branch on success rather than on the HTTP status.

successbooleanrequired

Possible values: [false]

error objectrequired

Machine-readable failure detail. code is stable and safe to branch on; message is for humans and may change.

codestringrequired

Machine-readable error code

Example: MISSING_PARAM
messagestringrequired

Human-readable error message

Example: Missing required parameter: chainId
details

Additional error context (varies by error code)

ErrorEnvelope
{
"success": false,
"error": {
"code": "MISSING_PARAM",
"message": "Missing required parameter: chainId"
}
}