Skip to main content

NatsErrorCode

Defined in: src/server/infrastructure/nats-error-codes.ts:7

NATS JetStream API error codes used by the transport.

Ref: https://github.com/nats-io/nats-server (server error definitions) Codes verified across NATS 2.12.6-2.14.1 via integration tests (original codes: 2026-04-02).

Enumeration Members

ConsumerAlreadyExists

ConsumerAlreadyExists: 10148

Defined in: src/server/infrastructure/nats-error-codes.ts:12

Consumer name already in use with different configuration (race condition on create).


ConsumerNotFound

ConsumerNotFound: 10014

Defined in: src/server/infrastructure/nats-error-codes.ts:9

Consumer does not exist on the specified stream.


NoSuitablePeers

NoSuitablePeers: 10005

Defined in: src/server/infrastructure/nats-error-codes.ts:24

No suitable peers for placement (fewer healthy peers than num_replicas, or no peer has storage headroom). Confirmed at runtime by the cluster integration test.


StorageResourcesExceeded

StorageResourcesExceeded: 10047

Defined in: src/server/infrastructure/nats-error-codes.ts:18

Storage resources exceeded: reservation exceeds server max_file_store.


StreamNotFound

StreamNotFound: 10059

Defined in: src/server/infrastructure/nats-error-codes.ts:15

Stream does not exist.