code to decide what your pipeline does next.
Error responses
Key and request errors
A resource in another organization answers
404, the same as one that doesn’t exist.
Release errors
These come from Create a release.
Send the full 40-character commit SHA. Deployz looks up a shorter SHA on GitHub, which can fail with
404 COMMIT_NOT_FOUND, 429 GITHUB_RATE_LIMITED, or 502 GITHUB_COMMITS_FETCH_FAILED.
A build that starts but fails doesn’t return an error code. The release’s status changes to failed, and failureReason says why. See Fix build failures.
Deploy, restart, and rollback errors
An operation that starts but fails doesn’t return an error code. The operation’s
state changes to failed, and failureCode names the cause. Look up the code in Failure codes.
Rate limits
Each API key can make 120 requests in each clock minute. Further requests in that minute answer429 with the code RATE_LIMITED. The Retry-After header and error.details.retryAfterSeconds give the number of seconds until the next minute starts.
To stay under the limit:
- Check a release or an operation about every 10 seconds, not in a tight loop.
- Use a separate key for each pipeline, so one busy pipeline doesn’t slow down another.
- When you get a
429, wait forRetry-Afterbefore you retry.
429 with a body that has no error.code. Retry it after a short wait.