Error shape
Errors generally return:Common status codes
400: validation failure, malformed payload, invalid IDs, or business rule failure401: unauthorized request when a deeper service-level auth check fails403: missing auth header, invalid token, expired key, or forbidden auth type404: missing resource409: conflict429: throttled request500: unexpected server error
Auth-related examples
Missing credentials:Integration advice
- Treat
400responses as actionable request issues. - Retry
429,502,503, and504with backoff if your workflow is idempotent. - Log both the
statusCodeandmessagefields from failed responses.