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, including a host that does not resolve. A crawl fails this way only when its first page does.
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 that could not be read or that requires a password not given with --pdf-password or --pdf-owner-password.
18The page opts out of AI use, so llm_text, llm_json or a navigator session refused it. See robot instructions.
19The server reached --server-unhealthy-at and exited with --server-exit-when-unhealthy.
20The EPHEM- license key has no remaining minutes for the month or was cancelled. Active runs exit once their current lease expires.
21--license-lease timed out waiting for confirmation, or printed a lease request for a workspace that cannot reach the licensing server. Run the command again to resume waiting on the same code.

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