Skip to main content

Exit Code Reference

v1.0.0

Look up POSIX, curl, Node.js, and Docker exit codes with descriptions and common causes.

26 codes found

0Success
POSIX / Bash

Program completed successfully.

Cause: Normal termination.

1General Error
POSIX / Bash

Catch-all for general errors.

Cause: Most script and application errors.

2Shell Misuse
POSIX / Bash

Misuse of shell built-ins (e.g. missing keyword).

Cause: Invalid flags or missing arguments to shell commands.

126Command Not Executable
POSIX / Bash

Permission denied or binary format error.

Cause: Missing execute permission — run chmod +x file.

127Command Not Found
POSIX / Bash

The command was not found in PATH.

Cause: Typo, not installed, or not in PATH.

128Invalid Exit Argument
POSIX / Bash

Exit called with a non-integer argument.

Cause: exit 3.14 or exit somevariable (non-numeric).

130Ctrl+C (SIGINT)
POSIX / Bash

128+2 — script terminated by keyboard interrupt.

Cause: User pressed Ctrl+C.

137SIGKILL
POSIX / Bash

128+9 — process killed without cleanup.

Cause: kill -9, OOM killer, or container resource limit.

143SIGTERM
POSIX / Bash

128+15 — graceful termination requested.

Cause: kill command, systemd stop, Docker stop.

255Exit Status Out of Range
POSIX / Bash

Exit code outside the 0–255 range was used.

Cause: exit -1 or exit 300 — wrapped to 255.

1Unsupported Protocol
curl

Protocol not supported by curl.

Cause: Unrecognised URL scheme.

3URL Malformed
curl

The URL could not be parsed.

Cause: Bad URL syntax or illegal characters.

6Could Not Resolve Host
curl

The hostname could not be resolved via DNS.

Cause: DNS failure, no network, or hostname typo.

7Failed to Connect
curl

Could not connect to host or proxy.

Cause: Host down, firewall blocking, or wrong port.

22HTTP Error Returned
curl

HTTP server returned an error status (4xx/5xx).

Cause: Used with --fail / -f flag.

28Operation Timeout
curl

The operation exceeded the specified timeout.

Cause: Slow server or network issues — try --max-time.

35SSL Connect Error
curl

SSL/TLS handshake failed.

Cause: Expired cert, self-signed cert, or version mismatch.

52Empty Reply From Server
curl

Server closed the connection with no reply.

Cause: Server crashed or closed connection prematurely.

56Receive Error
curl

Failure when receiving network data.

Cause: Connection reset mid-transfer.

1Uncaught Fatal Exception
Node.js

Unhandled exception with no domain or uncaughtException handler.

Cause: Unhandled throw or unhandled promise rejection.

5Fatal V8 Error
Node.js

Fatal error in the V8 engine.

Cause: Out of memory or internal V8 assertion failure.

9Invalid Argument
Node.js

Unknown or invalid option passed to node.

Cause: Unrecognised flag: node --bad-flag app.js

12Invalid Debug Argument
Node.js

Debug / inspect port already in use.

Cause: --inspect port conflict.

125Docker Daemon Error
Docker

The docker command itself failed to run.

Cause: Docker daemon not running or bad flag.

126Container Command Cannot Invoke
Docker

Contained command exists but is not executable.

Cause: Wrong architecture or missing permissions inside image.

127Container Command Not Found
Docker

Command not found inside the container image.

Cause: Tool not installed in the image.