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) Verified on NATS 2.12.6 via integration tests (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.


StreamNotFound

StreamNotFound: 10059

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

Stream does not exist.