2xx- the request succeeded.4xx- the request failed because of something in the request (a missing field, an invalid value, a conflict with existing state, or an authentication or authorization problem). These are safe to surface to the caller and, once corrected, safe to retry.5xx- something went wrong on our side. The request may or may not have been processed; use idempotency keys so retries are safe.
4xx and 5xx response carries a structured error body. See Errors for the response shape and the full list of error types and codes.
Success codes
Error status codes
See Errors for the specific
code values returned under each status.
Retrying failed requests
4xx(except429) - the request will not succeed as-is. Fix the problem described by the errortype/codebefore retrying.429- you are being rate limited. Wait and retry with exponential backoff.503- a dependency is temporarily unavailable. Retry after a short delay.5xx- the request may or may not have been processed. Retry with the sameIdempotency-Keyso the operation is not duplicated. See Idempotency.