EC
errcodes.dev
HTTP
PostgreSQL
Linux
Python
Docker
21 languages · 7,377+ codes
errcodes.dev
/
Node.js
⬡
Node.js Error Codes
Node.js 22
134 codes
ERR_* codes across HTTP, streams, crypto, TLS, workers and more
All severities
ERROR
WARNING
CRITICAL
All tiers
Common
Notable
Critical
Showing
134
of
134
errors
Code
Message
Severity
Tier
ERR_INVALID_ARG_TYPE
An invalid argument type was provided to a function.
ERROR
Notable
→
ERR_INVALID_ARG_VALUE
An argument has a value that is out of the accepted range.
ERROR
Notable
→
ERR_OUT_OF_RANGE
A given value is out of the accepted range.
ERROR
Notable
→
ERR_MISSING_ARGS
A required function argument was not provided.
ERROR
Notable
→
ERR_UNHANDLED_ERROR
An unhandled error occurred.
ERROR
Critical
→
ERR_MODULE_NOT_FOUND
A module could not be found.
ERROR
Common
→
ERR_REQUIRE_ESM
Cannot use require() to load an ES Module.
ERROR
Common
→
ERR_PACKAGE_PATH_NOT_EXPORTED
A package path is not exported from a package.
ERROR
Common
→
ERR_INVALID_PACKAGE_TARGET
The 'exports' field of a package.json contains an invalid target.
ERROR
Common
→
ERR_UNKNOWN_FILE_EXTENSION
An unknown file extension was encountered.
ERROR
Common
→
ERR_NETWORK_IMPORT_DISALLOWED
Network-based imports are not allowed.
ERROR
Common
→
ERR_HTTP_HEADERS_SENT
Cannot set headers after they are sent to the client.
ERROR
Notable
→
ERR_HTTP_INVALID_STATUS_CODE
An invalid HTTP status code was used.
ERROR
Notable
→
ERR_SOCKET_ALREADY_ENDED
The socket has already been ended.
ERROR
Notable
→
ERR_STREAM_WRITE_AFTER_END
Cannot write to a stream after it has ended.
ERROR
Notable
→
ERR_STREAM_DESTROYED
Cannot call a method on a destroyed stream.
ERROR
Notable
→
ERR_CRYPTO_INVALID_DIGEST
An invalid crypto digest algorithm was used.
ERROR
Notable
→
ERR_CRYPTO_KEY_NOT_FOUND
A private key was not found for a certificate.
ERROR
Notable
→
ERR_CHILD_PROCESS_STDIO_MAXBUFFER
The stdio buffer of a child process exceeded its maximum size.
ERROR
Critical
→
ERR_WORKER_UNSUPPORTED_OPERATION
An unsupported operation was performed on a worker thread.
ERROR
Notable
→
ERR_FS_EISDIR
A path that is a directory was used as a file.
ERROR
Notable
→
ERR_FS_FILE_TOO_LARGE
A file is too large to be processed.
ERROR
Critical
→
ERR_BUFFER_OUT_OF_BOUNDS
A buffer operation is out of bounds.
ERROR
Notable
→
ERR_ASSERTION
An assertion failed.
ERROR
Notable
→
ERR_USE_AFTER_CLOSE
An operation was attempted on a resource that has been closed.
ERROR
Notable
→
ERR_REQUIRE_CYCLE_MODULE
Circular require() dependency detected in CJS/ESM interop
WARNING
Notable
→
ERR_UNSUPPORTED_DIR_IMPORT
Directory import is not supported in ES modules
ERROR
Notable
→
ERR_PACKAGE_IMPORT_NOT_EXPORTED
Package subpath is not defined in package.json "imports"
ERROR
Notable
→
ERR_VM_MODULE_NOT_MODULE
Value passed to vm linker is not a vm.Module instance
ERROR
Critical
→
ERR_VM_MODULE_ALREADY_LINKED
vm.Module.link() called on an already-linked module
ERROR
Critical
→
ERR_VM_MODULE_CANNOT_CREATE_CACHED_DATA
Cannot create cached data for an already-evaluated vm module
ERROR
Critical
→
ERR_VM_MODULE_LINK_FAILURE
vm.Module linking failed due to an error in the linker
ERROR
Critical
→
ERR_VM_MODULE_STATUS
vm.Module operation invalid for current module status
ERROR
Critical
→
ERR_HTTP_TRAILER_INVALID
HTTP trailer set without chunked transfer encoding
ERROR
Notable
→
ERR_HTTP_INVALID_HEADER_NAME
HTTP header name contains invalid characters
ERROR
Notable
→
ERR_HTTP_INVALID_HEADER_VALUE
HTTP header value contains invalid characters
ERROR
Notable
→
ERR_HTTP_REQUEST_TIMEOUT
HTTP request timed out before completing
ERROR
Notable
→
ERR_HTTP_SOCKET_ASSIGNED
HTTP socket already assigned to another response
ERROR
Notable
→
ERR_HTTP_SOCKET_ENCODING
Cannot change encoding on HTTP socket
ERROR
Notable
→
ERR_HTTP_CONTENT_LENGTH_MISMATCH
Response body size does not match Content-Length header
ERROR
Notable
→
ERR_HTTP_BODY_NOT_ALLOWED
HTTP response body not allowed for this status code
ERROR
Notable
→
ERR_HTTP2_HEADERS_SENT
HTTP/2 headers already sent for this stream
ERROR
Notable
→
ERR_HTTP2_INVALID_STREAM
Operation attempted on a destroyed or closed HTTP/2 stream
ERROR
Notable
→
ERR_HTTP2_STREAM_CANCEL
HTTP/2 stream was cancelled before completion
WARNING
Notable
→
ERR_HTTP2_TRAILERS_ALREADY_SENT
HTTP/2 trailers already sent on this stream
ERROR
Critical
→
ERR_HTTP2_SETTINGS_CANCEL
HTTP/2 settings request was cancelled
ERROR
Critical
→
ERR_HTTP2_CONNECT_AUTHORITY
HTTP/2 CONNECT request missing :authority pseudo-header
ERROR
Notable
→
ERR_HTTP2_CONNECT_PATH
HTTP/2 CONNECT request must not include :path pseudo-header
ERROR
Notable
→
ERR_HTTP2_CONNECT_SCHEME
HTTP/2 CONNECT request must not include :scheme pseudo-header
ERROR
Notable
→
ERR_HTTP2_PSEUDOHEADER_NOT_ALLOWED
HTTP/2 pseudo-header used in an invalid context
ERROR
Notable
→
ERR_HTTP2_STATUS_101
HTTP/2 does not support status 101 (Switching Protocols)
ERROR
Notable
→
ERR_STREAM_PUSH_AFTER_EOF
Stream push() called after EOF has been emitted
ERROR
Notable
→
ERR_STREAM_UNSHIFT_AFTER_END_EVENT
Stream unshift() called after end event
ERROR
Notable
→
ERR_STREAM_PREMATURE_CLOSE
Stream was closed before it finished
ERROR
Notable
→
ERR_STREAM_NULL_VALUES
Non-object-mode stream received null value
ERROR
Notable
→
ERR_STREAM_CANNOT_PIPE
Cannot pipe into a stream that is not writable
ERROR
Notable
→
ERR_STREAM_OVER_LIMIT
Stream read exceeded the configured high-water mark limit
ERROR
Notable
→
ERR_STREAM_ALREADY_FINISHED
Stream operation called after stream has finished
ERROR
Notable
→
ERR_STREAM_READ_NOT_IMPLEMENTED
Readable stream subclass did not implement _read()
ERROR
Notable
→
ERR_BUFFER_TOO_LARGE
Buffer size exceeds the maximum allowed limit
ERROR
Notable
→
ERR_INVALID_BUFFER_SIZE
Buffer size is not a multiple of the word size
ERROR
Notable
→
ERR_BUFFER_CONTEXT_NOT_AVAILABLE
Buffer is not available in the current V8 context
ERROR
Critical
→
ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE
Crypto key object type is invalid for this operation
ERROR
Notable
→
ERR_CRYPTO_INCOMPATIBLE_KEY
Crypto key is incompatible with the requested operation
ERROR
Notable
→
ERR_CRYPTO_SIGN_KEY_REQUIRED
No key provided for crypto signing operation
ERROR
Notable
→
ERR_CRYPTO_UNSUPPORTED_OPERATION
Crypto operation is not supported
ERROR
Notable
→
ERR_CRYPTO_HASH_FINALIZED
Hash update() called after digest() was already called
ERROR
Notable
→
ERR_CRYPTO_HASH_UPDATE_FAILED
Hash update() failed internally
ERROR
Notable
→
ERR_CRYPTO_ECDH_INVALID_FORMAT
Invalid format for ECDH public key
ERROR
Notable
→
ERR_CRYPTO_INVALID_STATE
Crypto operation called on object in invalid state
ERROR
Notable
→
ERR_TLS_CERT_ALTNAME_INVALID
TLS certificate Subject Alternative Name does not match the hostname
ERROR
Common
→
ERR_TLS_DH_PARAM_SIZE
TLS Diffie-Hellman parameter size is too small
WARNING
Notable
→
ERR_TLS_INVALID_CONTEXT
TLS context is not a valid SecureContext
ERROR
Notable
→
ERR_TLS_SNI_FROM_SERVER
TLS SNI extension cannot be issued from a server socket
ERROR
Critical
→
ERR_TLS_SESSION_ATTACK
Excessive TLS session resumptions detected
WARNING
Notable
→
ERR_TLS_CERT_ALTNAME_FORMAT
TLS certificate SAN contains an invalid character
ERROR
Notable
→
ERR_TLS_RENEGOTIATION_DISABLED
TLS renegotiation was attempted but is disabled
ERROR
Notable
→
ERR_TLS_RENEGOTIATION_FAILED
TLS renegotiation request failed
ERROR
Notable
→
ERR_CHILD_PROCESS_IPC_REQUIRED
IPC channel required but not established for child process
ERROR
Notable
→
ERR_CHILD_PROCESS_UNSUPPORTED_OPTION
Unsupported option passed to child_process function
ERROR
Notable
→
ERR_INVALID_REPL_EVAL_CONFIG
REPL eval and useGlobal options are mutually exclusive
ERROR
Critical
→
ERR_CHILD_CLOSED_BEFORE_REPLY
Child process closed before sending a reply
ERROR
Notable
→
ERR_MISSING_PLATFORM_FOR_WORKER
Worker threads not available — platform not supported
ERROR
Notable
→
ERR_WORKER_INIT_FAILED
Worker thread initialisation failed
ERROR
Notable
→
ERR_WORKER_OUT_OF_MEMORY
Worker thread ran out of memory
CRITICAL
Common
→
ERR_WORKER_PATH
Worker script path is invalid
ERROR
Notable
→
ERR_WORKER_INVALID_EXEC_ARGV
Invalid execArgv passed to Worker constructor
ERROR
Notable
→
ERR_WORKER_NOT_RUNNING
Operation failed because worker thread is not running
ERROR
Notable
→
ERR_FS_INVALID_SCHEME
File URL has an invalid or unsupported scheme
ERROR
Notable
→
ERR_FS_CP_DIR_TO_NON_DIR
Cannot copy a directory to a non-directory destination
ERROR
Notable
→
ERR_FS_CP_EEXIST
Destination file already exists and force is not set
ERROR
Notable
→
ERR_FS_CP_FIFO_PIPE
Cannot copy a FIFO or pipe with fs.cp()
ERROR
Critical
→
ERR_FS_CP_NON_DIR_TO_DIR
Cannot copy a non-directory source to a directory destination
ERROR
Notable
→
ERR_FS_CP_SOCKET
Cannot copy a Unix domain socket with fs.cp()
ERROR
Critical
→
ERR_FS_CP_UNKNOWN
fs.cp() encountered a file of unknown type
ERROR
Critical
→
ERR_DNS_SET_SERVERS_FAILED
Failed to set DNS servers
ERROR
Notable
→
ERR_INVALID_IP_ADDRESS
Invalid IP address string
ERROR
Notable
→
ERR_SOCKET_BAD_PORT
Socket port is outside the valid range 0-65535
ERROR
Notable
→
ERR_SOCKET_DGRAM_NOT_RUNNING
UDP socket is not running
ERROR
Notable
→
ERR_SOCKET_ALREADY_CONNECTED
Socket is already connected
ERROR
Notable
→
ERR_SOCKET_BAD_TYPE
Invalid socket type specified
ERROR
Notable
→
ERR_SOCKET_CANNOT_SEND
Data cannot be sent on this socket
ERROR
Notable
→
ERR_SOCKET_CLOSED
Socket has been closed
ERROR
Notable
→
ERR_SOCKET_DGRAM_IS_CONNECTED
dgram socket is already connected
ERROR
Notable
→
ERR_FALSY_VALUE_REJECTION
Promise rejected with a falsy value
WARNING
Notable
→
ERR_MULTIPLE_CALLBACK
Callback called more than once
ERROR
Notable
→
ERR_ASYNC_CALLBACK
Async hook callback must be a function
ERROR
Critical
→
ERR_ASYNC_TYPE
Async resource type must be a string
ERROR
Critical
→
ERR_INVALID_CALLBACK
Callback argument must be a function
ERROR
Notable
→
ERR_INVALID_THIS
Function called with invalid this context
ERROR
Notable
→
ERR_INVALID_CURSOR_POS
Cursor position is invalid for readline
ERROR
Critical
→
ERR_INVALID_FD
File descriptor is not valid
ERROR
Notable
→
ERR_EVENT_RECURSION
Recursive event dispatch detected
ERROR
Notable
→
ERR_PROCESS_ALREADY_EXITED
Child process has already exited
ERROR
Notable
→
ERR_AMBIGUOUS_ARGUMENT
Function argument is ambiguous or cannot be used as specified
ERROR
Notable
→
ERR_NAPI_TSFN_STOP_IDLE_LOOP
Failed to stop the libuv idle loop for thread-safe function
ERROR
Critical
→
ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST
MessagePort in message data must also be in transfer list
ERROR
Notable
→
ERR_ENCODING_INVALID_ENCODED_DATA
Encoded data is invalid for the specified encoding
ERROR
Notable
→
ERR_ENCODING_NOT_SUPPORTED
The specified encoding is not supported
ERROR
Notable
→
ERR_INVALID_PROTOCOL
Invalid protocol specified for the request
ERROR
Notable
→
ERR_UNESCAPED_CHARACTERS
URL contains unescaped characters that are not allowed
ERROR
Notable
→
ERR_INSPECTOR_ALREADY_ACTIVATED
Inspector is already activated
ERROR
Critical
→
ERR_INSPECTOR_ALREADY_CONNECTED
Inspector session is already connected
ERROR
Critical
→
ERR_INSPECTOR_CLOSED
Inspector session was closed
ERROR
Critical
→
ERR_INSPECTOR_COMMAND
Inspector command failed
ERROR
Critical
→
ERR_WASI_ALREADY_STARTED
WASI instance has already been started
ERROR
Critical
→
ERR_WASI_NOT_STARTED
WASI instance has not been started
ERROR
Critical
→
ERR_NAPI_INVALID_TYPEDARRAY_ALIGNMENT
TypedArray buffer is not properly aligned for native addon
ERROR
Critical
→
ERR_ACCESS_DENIED
Access denied by the Node.js permission model
ERROR
Common
→
ERR_ILLEGAL_CONSTRUCTOR
Class cannot be constructed directly
ERROR
Common
→
ERR_SOCKET_CLOSED_BEFORE_CONNECTION
Socket was destroyed before connection was established
ERROR
Notable
→
ERR_HTTP2_MAX_PENDING_SETTINGS_ACK
Too many unacknowledged HTTP/2 SETTINGS frames
ERROR
Notable
→
ERR_HTTP2_INVALID_HEADER_VALUE
HTTP/2 header contains an invalid value
ERROR
Common
→
ERR_INVALID_HANDLE_TYPE
Invalid handle type passed to child_process.send()
ERROR
Common
→