Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
enum ErrorCode
import { ErrorCode } from "https://deno.land/x/natsws@v1.28.0/src/nats-base-client.ts";

Members

AccountExpired = "ACCOUNT_EXPIRED"
ApiError = "BAD API"
AuthenticationExpired = "AUTHENTICATION_EXPIRED"
AuthenticationTimeout = "AUTHENTICATION_TIMEOUT"
AuthorizationViolation = "AUTHORIZATION_VIOLATION"
BadAuthentication = "BAD_AUTHENTICATION"
BadCreds = "BAD_CREDS"
BadHeader = "BAD_HEADER"
BadJson = "BAD_JSON"
BadPayload = "BAD_PAYLOAD"
BadSubject = "BAD_SUBJECT"
Cancelled = "CANCELLED"
ConnectionClosed = "CONNECTION_CLOSED"
ConnectionDraining = "CONNECTION_DRAINING"
ConnectionRefused = "CONNECTION_REFUSED"
ConnectionTimeout = "CONNECTION_TIMEOUT"
Disconnect = "DISCONNECT"
InvalidOption = "INVALID_OPTION"
InvalidPayload = "INVALID_PAYLOAD"
JetStream404NoMessages = "404"
JetStream408RequestTimeout = "408"
JetStream409 = "409"
JetStream409MaxAckPendingExceeded = "409"
JetStreamIdleHeartBeat = "IDLE_HEARTBEAT"
JetStreamInvalidAck = "JESTREAM_INVALID_ACK"
JetStreamNotEnabled = "503"
MaxPayloadExceeded = "MAX_PAYLOAD_EXCEEDED"
NoResponders = "503"
NotFunction = "NOT_FUNC"
PermissionsViolation = "PERMISSIONS_VIOLATION"
ProtocolError = "NATS_PROTOCOL_ERR"
RequestError = "REQUEST_ERROR"
ServerOptionNotAvailable = "SERVER_OPT_NA"
SubClosed = "SUB_CLOSED"
SubDraining = "SUB_DRAINING"
Timeout = "TIMEOUT"
Tls = "TLS"
Unknown = "UNKNOWN_ERROR"
WssRequired = "WSS_REQUIRED"