code— a stable, machine-readable string (switch on this, not the message).message— a human-readable, safe description. It never leaks upstream or internal detail.requestId— quote it in support requests so we can trace the exact call.
Core concepts
Errors
The error shape and what each status means.
Errors return a consistent JSON shape and the matching HTTP status code: