Skip to main content
When a request fails, the Deployz API answers with an HTTP status code and a JSON body that says why. Use the 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 answer 429 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 for Retry-After before you retry.
Deployz also limits the total rate of API requests across all keys. A request over that limit answers 429 with a body that has no error.code. Retry it after a short wait.