Skip to content

Health.md CLI Exit Codes

This file is generated by scripts/generated-cli-reference-docs.sh from the CLI exit-code logic.

Scenario Command HTTP Response status Raw Allow partial Exit code
status_success status 200 n/a no no 0
status_http_error status 503 n/a no no 1
write_files_success export 200 success no no 0
write_files_partial_success export 200 partial_success no no 0
strict_raw_success export 200 success yes no 0
strict_raw_partial_default export 200 partial_success yes no 1
strict_raw_partial_allowed export 200 partial_success yes yes 0
export_failure export 409 failure no no 1
http_200_unknown_status export 200 accepted no no 1
http_error export 503 n/a no no 1
strict_raw_invalid_success_envelope export 200 success yes no 1

Strict raw HTTP-200 responses are validated before the table’s status mapping is applied. An invalid envelope emits invalid_strict_raw_success and exits 1.

Top-level CLI error Exit code
Usage or argument error 2
Unexpected error 1

Last updated: