Skip to main content

Exit codes

Exit codes are stable and safe to branch on:

CodeMeaning
0success
1HTTP non-success / partial-failure batch / post-upload state-sync failed
2misuse / config error / generic internal
4DNS resolution failure
5connection refused
6timeout
7TLS handshake failed
8redirect loop
9unsupported authentication scheme
10--wait timed out before the async operation completed
11--wait observed the async operation fail server-side
12write refused locally by a read-only context
13apply refused: would empty a protected role (admin lockout)
14apply refused: would strip the caller's own protected role / account (self-lockout)
15apply refused: caller identity unavailable, so the self-lockout check can't run