Error shape
Failed requests return JSON withsuccess: false and an error message:
HTTP status codes
| Status | Meaning | What to do |
|---|---|---|
400 | Bad request — invalid action, malformed skus, etc. | Fix the request body |
401 | Missing or invalid API key | Verify the Authorization header |
405 | Wrong HTTP method | Use POST only |
500 | Server error | Retry with exponential backoff |
502 / 503 | Upstream unavailable | Retry with backoff; contact Keystone if persistent |
Retry guidance
- Use exponential backoff for
5xxresponses. 400and401errors are not retryable without changing the request.- For bulk syncs, paginate with
limit/offsetrather than sending very largeskusarrays.
