Skip to content

Exit codes

nsc returns one of the exit codes below. Multiple ErrorType values may share an exit code; the discriminant is the envelope type field, not the code.

Exit code type values
1 internal
3 schema
4 input_error, validation
5 server
6 client
7 transport
8 auth
9 not_found
10 conflict
11 rate_limited
12 config
13 ambiguous_alias
14 unknown_alias

Exit code 0 is reserved for success. Exit code 1 is the catch-all internal-error.