zshot/cliDownload

Exit Codes

Every run exits with one of the codes below. Nonzero exits print a description of the failure to stderr.

CodeMeaning
0Success. Informational flags such as --help and --version also exit 0.
1Unknown or internal error not covered by a more specific code.
2The render exceeded its process timeout, or the command line failed to parse: an unknown flag or an invalid value.
3Arguments rejected by ZShot’s own validation, including flags that require a higher license tier.
4Interrupted by SIGINT or SIGTERM.
5Environment setup failed: CEF startup, display, proxy configuration, a refused --chromium-preference, loading a blocklist or adblock list, or a --web-bot-auth key URL that cannot be fetched or holds no usable key.
6The page rendered but encoding the output failed.
7The page failed to load.
8Access disallowed by the site’s robots.txt.
9LLM navigation with --navigate did not achieve its goal.
11The primary output was written, but a HAR, WARC, or network-log output failed to write.
12The render succeeded but streaming the payload to stdout with -f - failed.
13A captured resource body could not be spilled to disk. The request is cancelled rather than producing a partial archive.
14A credential helper failed: not found or changed since startup, non-zero exit, timeout, or a bad HTTP response. The message names the credential and the reason.
15A URL-backed navigator file could not be fetched: a bad HTTP status, timeout, size limit, blocked address, or empty body. The message names the file and the reason.
16The page is a PDF, which ZShot renders only as download, warc, wacz or har. A navigator session that reaches a PDF ends with it.

In --server mode these codes apply to server startup; failures of individual render requests are reported in the HTTP response instead.