Error Envelope
Unified platform error schema and common codes
Unified Schema
{
"error": {
"request_id": "uuid",
"provider_id": "u1|u2",
"status": 402,
"code": "INSUFFICIENT_CREDITS",
"message": "human readable",
"upstream_status": 502
}
}Common Codes
UNAUTHORIZEDINSUFFICIENT_CREDITSUPSTREAM_ERRORUPSTREAM_TIMEOUTUPSTREAM_UNAVAILABLEREQUEST_TOO_LARGEUPSTREAM_RESPONSE_TOO_LARGEENDPOINT_NOT_SUPPORTEDAUTH_BACKEND_UNAVAILABLEBILLING_UNAVAILABLE
Privacy Rule
Error message must not leak upstream hostnames, brands, or tokens.
MkSaaS Docs