Expand description
The process exit codes of stratum, stable across releases.
| Code | Meaning |
|---|---|
| 0 | Success; for status, the node is ready |
| 1 | Local failure: a key, token or resume file, the clock, or writing output |
| 2 | The node could not be reached |
| 3 | status: the node is unconfigured |
| 4 | status: the node is degraded |
| 5 | The node sent a response that does not follow the API contract |
| 6 | Changes were previewed but not applied: no confirmation |
| 7 | A local check refused the node’s answer (claim body, manifest signature) |
| 10 | Server error bad_request |
| 11 | Server error unauthorized |
| 12 | Server error forbidden |
| 13 | Server error not_found |
| 14 | Server error conflict |
| 15 | Server error payload_too_large |
| 16 | Server error unsupported_media_type |
| 17 | Server error invalid, or a preview that reports validation errors |
| 18 | Server error too_many_challenges |
| 19 | Server error backup_refused |
| 20 | Server error internal |
| 21 | A server error code this client does not know |
| 64 | Invalid command line |
Constants§
- BACKUP_
REFUSED - Server error
backup_refused(HTTP 409): no backup recipient configured. - BAD_
REQUEST - Server error
bad_request(HTTP 400). - CONFLICT
- Server error
conflict(HTTP 409): stale revision, already bound or operation conflict. - DEGRADED
status: the node isdegraded.- FAILURE
- A local failure: a key, token or resume file, the clock, or output.
- FORBIDDEN
- Server error
forbidden(HTTP 403). - INTERNAL
- Server error
internal(HTTP 500). - INVALID
- Server error
invalid(HTTP 422), or a preview with validation errors. - NOT_
CONFIRMED - Changes were previewed but not applied because nothing confirmed them.
- NOT_
FOUND - Server error
not_found(HTTP 404). - OK
- Success. For
status, the node isready. - PAYLOAD_
TOO_ LARGE - Server error
payload_too_large(HTTP 413). - PROTOCOL
- The node’s response does not follow the API contract.
- REFUSED
- A local check refused the node’s answer.
- TOO_
MANY_ CHALLENGES - Server error
too_many_challenges(HTTP 429). - UNAUTHORIZED
- Server error
unauthorized(HTTP 401). - UNCONFIGURED
status: the node isunconfigured.- UNKNOWN_
SERVER_ ERROR - A server error code this client does not know.
- UNREACHABLE
- The node could not be reached.
- UNSUPPORTED_
MEDIA_ TYPE - Server error
unsupported_media_type(HTTP 415). - USAGE
- The command line could not be parsed.
Functions§
- for_
server_ code - Returns the exit code for a server error code from the API contract.