Loading...
Searching...
No Matches
status.h
Go to the documentation of this file.
// Copyright 2015-2022 The NATS Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef STATUS_H_
#define STATUS_H_
#ifdef __cplusplus
extern "C" {
#endif
typedef enum
{
#if defined(NATS_CONN_STATUS_NO_PREFIX)
// This is deprecated and applications referencing connection
// status should be updated to use the values prefixed with NATS_CONN_STATUS_.
DISCONNECTED = 0,
CONNECTING,
CONNECTED,
CLOSED,
RECONNECTING,
DRAINING_SUBS,
DRAINING_PUBS,
#else
NATS_CONN_STATUS_DISCONNECTED = 0,
NATS_CONN_STATUS_CONNECTING,
NATS_CONN_STATUS_CONNECTED,
NATS_CONN_STATUS_CLOSED,
NATS_CONN_STATUS_RECONNECTING,
NATS_CONN_STATUS_DRAINING_SUBS,
NATS_CONN_STATUS_DRAINING_PUBS,
#endif
} natsConnStatus;
typedef enum
{
NATS_OK = 0,
NATS_ERR,
NATS_PROTOCOL_ERROR,
NATS_IO_ERROR,
NATS_LINE_TOO_LONG,
NATS_CONNECTION_CLOSED,
NATS_NO_SERVER,
NATS_STALE_CONNECTION,
NATS_SECURE_CONNECTION_WANTED,
NATS_SECURE_CONNECTION_REQUIRED,
NATS_CONNECTION_DISCONNECTED,
NATS_CONNECTION_AUTH_FAILED,
NATS_NOT_PERMITTED,
NATS_NOT_FOUND,
NATS_ADDRESS_MISSING,
NATS_INVALID_SUBJECT,
NATS_INVALID_ARG,
NATS_INVALID_SUBSCRIPTION,
NATS_INVALID_TIMEOUT,
NATS_ILLEGAL_STATE,
NATS_SLOW_CONSUMER,
NATS_MAX_PAYLOAD,
NATS_MAX_DELIVERED_MSGS,
NATS_INSUFFICIENT_BUFFER,
NATS_NO_MEMORY,
NATS_SYS_ERROR,
NATS_TIMEOUT,
NATS_FAILED_TO_INITIALIZE,
NATS_NOT_INITIALIZED,
NATS_SSL_ERROR,
NATS_NO_SERVER_SUPPORT,
NATS_NOT_YET_CONNECTED,
NATS_DRAINING,
NATS_INVALID_QUEUE_NAME,
NATS_NO_RESPONDERS,
NATS_MISMATCH,
NATS_MISSED_HEARTBEAT,
} natsStatus;
typedef enum {
JSAccountResourcesExceededErr = 10002,
JSBadRequestErr = 10003,
JSClusterIncompleteErr = 10004,
JSClusterNoPeersErr = 10005,
JSClusterNotActiveErr = 10006,
JSClusterNotAssignedErr = 10007,
JSClusterNotAvailErr = 10008,
JSClusterNotLeaderErr = 10009,
JSClusterRequiredErr = 10010,
JSClusterTagsErr = 10011,
JSConsumerCreateErr = 10012,
JSConsumerNameExistErr = 10013,
JSConsumerNotFoundErr = 10014,
JSSnapshotDeliverSubjectInvalidErr = 10015,
JSConsumerDurableNameNotInSubjectErr = 10016,
JSConsumerDurableNameNotMatchSubjectErr = 10017,
JSConsumerDurableNameNotSetErr = 10018,
JSConsumerEphemeralWithDurableInSubjectErr = 10019,
JSConsumerEphemeralWithDurableNameErr = 10020,
JSStreamExternalApiOverlapErr = 10021,
JSStreamExternalDelPrefixOverlapsErr = 10022,
JSInsufficientResourcesErr = 10023,
JSStreamInvalidExternalDeliverySubjErr = 10024,
JSInvalidJSONErr = 10025,
JSMaximumConsumersLimitErr = 10026,
JSMaximumStreamsLimitErr = 10027,
JSMemoryResourcesExceededErr = 10028,
JSMirrorConsumerSetupFailedErr = 10029,
JSMirrorMaxMessageSizeTooBigErr = 10030,
JSMirrorWithSourcesErr = 10031,
JSMirrorWithStartSeqAndTimeErr = 10032,
JSMirrorWithSubjectFiltersErr = 10033,
JSMirrorWithSubjectsErr = 10034,
JSNoAccountErr = 10035,
JSClusterUnSupportFeatureErr = 10036,
JSNoMessageFoundErr = 10037,
JSNotEmptyRequestErr = 10038,
JSNotEnabledForAccountErr = 10039,
JSClusterPeerNotMemberErr = 10040,
JSRaftGeneralErr = 10041,
JSRestoreSubscribeFailedErr = 10042,
JSSequenceNotFoundErr = 10043,
JSClusterServerNotMemberErr = 10044,
JSSourceConsumerSetupFailedErr = 10045,
JSSourceMaxMessageSizeTooBigErr = 10046,
JSStorageResourcesExceededErr = 10047,
JSStreamAssignmentErr = 10048,
JSStreamCreateErr = 10049,
JSStreamDeleteErr = 10050,
JSStreamGeneralError = 10051,
JSStreamInvalidConfig = 10052,
JSStreamLimitsErr = 10053,
JSStreamMessageExceedsMaximumErr = 10054,
JSStreamMirrorNotUpdatableErr = 10055,
JSStreamMismatchErr = 10056,
JSStreamMsgDeleteFailed = 10057,
JSStreamNameExistErr = 10058,
JSStreamNotFoundErr = 10059,
JSStreamNotMatchErr = 10060,
JSStreamReplicasNotUpdatableErr = 10061,
JSStreamRestoreErr = 10062,
JSStreamSequenceNotMatchErr = 10063,
JSStreamSnapshotErr = 10064,
JSStreamSubjectOverlapErr = 10065,
JSStreamTemplateCreateErr = 10066,
JSStreamTemplateDeleteErr = 10067,
JSStreamTemplateNotFoundErr = 10068,
JSStreamUpdateErr = 10069,
JSStreamWrongLastMsgIDErr = 10070,
JSStreamWrongLastSequenceErr = 10071,
JSTempStorageFailedErr = 10072,
JSTemplateNameNotMatchSubjectErr = 10073,
JSStreamReplicasNotSupportedErr = 10074,
JSPeerRemapErr = 10075,
JSNotEnabledErr = 10076,
JSStreamStoreFailedErr = 10077,
JSConsumerConfigRequiredErr = 10078,
JSConsumerDeliverToWildcardsErr = 10079,
JSConsumerPushMaxWaitingErr = 10080,
JSConsumerDeliverCycleErr = 10081,
JSConsumerMaxPendingAckPolicyRequiredErr = 10082,
JSConsumerSmallHeartbeatErr = 10083,
JSConsumerPullRequiresAckErr = 10084,
JSConsumerPullNotDurableErr = 10085,
JSConsumerPullWithRateLimitErr = 10086,
JSConsumerMaxWaitingNegativeErr = 10087,
JSConsumerHBRequiresPushErr = 10088,
JSConsumerFCRequiresPushErr = 10089,
JSConsumerDirectRequiresPushErr = 10090,
JSConsumerDirectRequiresEphemeralErr = 10091,
JSConsumerOnMappedErr = 10092,
JSConsumerFilterNotSubsetErr = 10093,
JSConsumerInvalidPolicyErr = 10094,
JSConsumerInvalidSamplingErr = 10095,
JSStreamInvalidErr = 10096,
JSConsumerWQRequiresExplicitAckErr = 10098,
JSConsumerWQMultipleUnfilteredErr = 10099,
JSConsumerWQConsumerNotUniqueErr = 10100,
JSConsumerWQConsumerNotDeliverAllErr = 10101,
JSConsumerNameTooLongErr = 10102,
JSConsumerBadDurableNameErr = 10103,
JSConsumerStoreFailedErr = 10104,
JSConsumerExistingActiveErr = 10105,
JSConsumerReplacementWithDifferentNameErr = 10106,
JSConsumerDescriptionTooLongErr = 10107,
JSConsumerWithFlowControlNeedsHeartbeatsErr = 10108,
JSStreamSealedErr = 10109,
JSStreamPurgeFailedErr = 10110,
JSStreamRollupFailedErr = 10111,
JSConsumerInvalidDeliverSubjectErr = 10112,
JSStreamMaxBytesRequiredErr = 10113,
JSConsumerMaxRequestBatchNegativeErr = 10114,
JSConsumerMaxRequestExpiresToSmallErr = 10115,
JSConsumerMaxDeliverBackoffErr = 10116,
JSStreamInfoMaxSubjectsErr = 10117,
JSStreamOfflineErr = 10118,
JSConsumerOfflineErr = 10119,
JSNoLimitsErr = 10120,
JSConsumerMaxPendingAckExcessErr = 10121,
JSStreamMaxStreamBytesExceededErr = 10122,
JSStreamMoveAndScaleErr = 10123,
JSStreamMoveInProgressErr = 10124,
JSConsumerMaxRequestBatchExceededErr = 10125,
JSConsumerReplicasExceedsStreamErr = 10126,
JSConsumerNameContainsPathSeparatorsErr = 10127,
JSStreamNameContainsPathSeparatorsErr = 10128,
JSStreamMoveNotInProgressErr = 10129,
JSStreamNameExistRestoreFailedErr = 10130,
JSConsumerCreateFilterSubjectMismatchErr = 10131,
JSConsumerCreateDurableAndNameMismatchErr = 10132,
JSReplicasCountCannotBeNegativeErr = 10133,
} jsErrCode;
#ifdef __cplusplus
}
#endif
#endif /* STATUS_H_ */
jsErrCode
jsErrCode
Definition: status.h:135
JSConsumerWQConsumerNotDeliverAllErr
@ JSConsumerWQConsumerNotDeliverAllErr
Consumer must be deliver all on workqueue stream.
Definition: status.h:235
JSNoMessageFoundErr
@ JSNoMessageFoundErr
No message found.
Definition: status.h:172
JSConsumerReplacementWithDifferentNameErr
@ JSConsumerReplacementWithDifferentNameErr
Consumer replacement durable config not the same.
Definition: status.h:240
JSStreamInvalidConfig
@ JSStreamInvalidConfig
Stream configuration validation error.
Definition: status.h:187
JSMirrorWithSubjectsErr
@ JSMirrorWithSubjectsErr
Stream mirrors can not also contain subjects.
Definition: status.h:169
JSReplicasCountCannotBeNegativeErr
@ JSReplicasCountCannotBeNegativeErr
Replicas count cannot be negative.
Definition: status.h:267
JSConsumerFilterNotSubsetErr
@ JSConsumerFilterNotSubsetErr
Consumer filter subject is not a valid subset of the interest subjects.
Definition: status.h:228
JSConsumerEphemeralWithDurableNameErr
@ JSConsumerEphemeralWithDurableNameErr
Consumer expected to be ephemeral but a durable name was set in request.
Definition: status.h:155
JSConsumerDurableNameNotMatchSubjectErr
@ JSConsumerDurableNameNotMatchSubjectErr
Consumer name in subject does not match durable name in request.
Definition: status.h:152
JSConsumerReplicasExceedsStreamErr
@ JSConsumerReplicasExceedsStreamErr
Consumer config replica count exceeds parent stream.
Definition: status.h:260
JSSequenceNotFoundErr
@ JSSequenceNotFoundErr
Sequence not found.
Definition: status.h:178
JSStreamTemplateCreateErr
@ JSStreamTemplateCreateErr
Generic template creation failed.
Definition: status.h:201
JSStreamAssignmentErr
@ JSStreamAssignmentErr
Generic stream assignment error.
Definition: status.h:183
JSAccountResourcesExceededErr
@ JSAccountResourcesExceededErr
Resource limits exceeded for account.
Definition: status.h:137
JSConsumerMaxWaitingNegativeErr
@ JSConsumerMaxWaitingNegativeErr
Consumer max waiting needs to be positive.
Definition: status.h:222
JSConsumerStoreFailedErr
@ JSConsumerStoreFailedErr
Error creating store for consumer.
Definition: status.h:238
JSConsumerPullWithRateLimitErr
@ JSConsumerPullWithRateLimitErr
Consumer in pull mode can not have rate limit set.
Definition: status.h:221
JSStorageResourcesExceededErr
@ JSStorageResourcesExceededErr
Insufficient storage resources available.
Definition: status.h:182
JSConsumerCreateDurableAndNameMismatchErr
@ JSConsumerCreateDurableAndNameMismatchErr
Consumer Durable and Name have to be equal if both are provided.
Definition: status.h:266
JSClusterNotLeaderErr
@ JSClusterNotLeaderErr
JetStream cluster can not handle request.
Definition: status.h:144
JSStreamPurgeFailedErr
@ JSStreamPurgeFailedErr
Generic stream purge failure.
Definition: status.h:244
JSStreamTemplateNotFoundErr
@ JSStreamTemplateNotFoundErr
Template not found.
Definition: status.h:203
JSStreamExternalApiOverlapErr
@ JSStreamExternalApiOverlapErr
Stream external api prefix must not overlap.
Definition: status.h:156
JSConsumerNameTooLongErr
@ JSConsumerNameTooLongErr
Consumer name is too long.
Definition: status.h:236
JSStreamSubjectOverlapErr
@ JSStreamSubjectOverlapErr
Subjects overlap with an existing stream.
Definition: status.h:200
JSConsumerPullNotDurableErr
@ JSConsumerPullNotDurableErr
Consumer in pull mode requires a durable name.
Definition: status.h:220
JSConsumerMaxPendingAckPolicyRequiredErr
@ JSConsumerMaxPendingAckPolicyRequiredErr
Consumer requires ack policy for max ack pending.
Definition: status.h:217
JSClusterRequiredErr
@ JSClusterRequiredErr
JetStream clustering support required.
Definition: status.h:145
JSConsumerDeliverToWildcardsErr
@ JSConsumerDeliverToWildcardsErr
Consumer deliver subject has wildcards.
Definition: status.h:214
JSStreamUpdateErr
@ JSStreamUpdateErr
Generic stream update error.
Definition: status.h:204
JSRestoreSubscribeFailedErr
@ JSRestoreSubscribeFailedErr
JetStream unable to subscribe to restore snapshot.
Definition: status.h:177
JSConsumerConfigRequiredErr
@ JSConsumerConfigRequiredErr
Consumer config required.
Definition: status.h:213
JSClusterNotAvailErr
@ JSClusterNotAvailErr
JetStream system temporarily unavailable.
Definition: status.h:143
JSPeerRemapErr
@ JSPeerRemapErr
Peer remap failed.
Definition: status.h:210
JSConsumerEphemeralWithDurableInSubjectErr
@ JSConsumerEphemeralWithDurableInSubjectErr
Consumer expected to be ephemeral but detected a durable name set in subject.
Definition: status.h:154
JSStreamLimitsErr
@ JSStreamLimitsErr
General stream limits exceeded error.
Definition: status.h:188
JSConsumerNameExistErr
@ JSConsumerNameExistErr
Consumer name already in use.
Definition: status.h:148
JSInvalidJSONErr
@ JSInvalidJSONErr
Invalid JSON.
Definition: status.h:160
JSStreamTemplateDeleteErr
@ JSStreamTemplateDeleteErr
Generic stream template deletion failed error.
Definition: status.h:202
JSStreamMessageExceedsMaximumErr
@ JSStreamMessageExceedsMaximumErr
Message size exceeds maximum allowed.
Definition: status.h:189
JSStreamMirrorNotUpdatableErr
@ JSStreamMirrorNotUpdatableErr
Mirror configuration can not be updated.
Definition: status.h:190
JSConsumerFCRequiresPushErr
@ JSConsumerFCRequiresPushErr
Consumer flow control requires a push based consumer.
Definition: status.h:224
JSStreamMoveAndScaleErr
@ JSStreamMoveAndScaleErr
Cannot move and scale a stream in a single update.
Definition: status.h:257
JSStreamReplicasNotUpdatableErr
@ JSStreamReplicasNotUpdatableErr
Replicas configuration can not be updated.
Definition: status.h:196
JSConsumerMaxRequestBatchExceededErr
@ JSConsumerMaxRequestBatchExceededErr
Consumer max request batch exceeds server limit.
Definition: status.h:259
JSConsumerWQConsumerNotUniqueErr
@ JSConsumerWQConsumerNotUniqueErr
Filtered consumer not unique on workqueue stream.
Definition: status.h:234
JSMirrorWithStartSeqAndTimeErr
@ JSMirrorWithStartSeqAndTimeErr
Stream mirrors can not have both start seq and start time configured.
Definition: status.h:167
JSStreamMaxStreamBytesExceededErr
@ JSStreamMaxStreamBytesExceededErr
Stream max bytes exceeds account limit max stream bytes.
Definition: status.h:256
JSConsumerDirectRequiresEphemeralErr
@ JSConsumerDirectRequiresEphemeralErr
Consumer direct requires an ephemeral consumer.
Definition: status.h:226
JSStreamMaxBytesRequiredErr
@ JSStreamMaxBytesRequiredErr
Account requires a stream config to have max bytes set.
Definition: status.h:247
JSStreamSequenceNotMatchErr
@ JSStreamSequenceNotMatchErr
Expected stream sequence does not match.
Definition: status.h:198
JSClusterTagsErr
@ JSClusterTagsErr
Tags placement not supported for operation.
Definition: status.h:146
JSStreamNotFoundErr
@ JSStreamNotFoundErr
Stream not found.
Definition: status.h:194
JSStreamNameContainsPathSeparatorsErr
@ JSStreamNameContainsPathSeparatorsErr
Stream name can not contain path separators.
Definition: status.h:262
JSStreamNotMatchErr
@ JSStreamNotMatchErr
Expected stream does not match.
Definition: status.h:195
JSConsumerOnMappedErr
@ JSConsumerOnMappedErr
Consumer direct on a mapped consumer.
Definition: status.h:227
JSConsumerHBRequiresPushErr
@ JSConsumerHBRequiresPushErr
Consumer idle heartbeat requires a push based consumer.
Definition: status.h:223
JSMaximumStreamsLimitErr
@ JSMaximumStreamsLimitErr
Maximum number of streams reached.
Definition: status.h:162
JSConsumerWQRequiresExplicitAckErr
@ JSConsumerWQRequiresExplicitAckErr
Workqueue stream requires explicit ack.
Definition: status.h:232
JSStreamInvalidExternalDeliverySubjErr
@ JSStreamInvalidExternalDeliverySubjErr
Stream external delivery prefix must not contain wildcards.
Definition: status.h:159
JSConsumerWQMultipleUnfilteredErr
@ JSConsumerWQMultipleUnfilteredErr
Multiple non-filtered consumers not allowed on workqueue stream.
Definition: status.h:233
JSStreamInfoMaxSubjectsErr
@ JSStreamInfoMaxSubjectsErr
Subject details would exceed maximum allowed.
Definition: status.h:251
JSStreamOfflineErr
@ JSStreamOfflineErr
Stream is offline.
Definition: status.h:252
JSConsumerInvalidPolicyErr
@ JSConsumerInvalidPolicyErr
Generic delivery policy error.
Definition: status.h:229
JSStreamMismatchErr
@ JSStreamMismatchErr
Stream name in subject does not match request.
Definition: status.h:191
JSClusterUnSupportFeatureErr
@ JSClusterUnSupportFeatureErr
Not currently supported in clustered mode.
Definition: status.h:171
JSStreamDeleteErr
@ JSStreamDeleteErr
General stream deletion error.
Definition: status.h:185
JSConsumerExistingActiveErr
@ JSConsumerExistingActiveErr
Consumer already exists and is still active.
Definition: status.h:239
JSStreamCreateErr
@ JSStreamCreateErr
Generic stream creation error.
Definition: status.h:184
JSStreamReplicasNotSupportedErr
@ JSStreamReplicasNotSupportedErr
Replicas > 1 not supported in non-clustered mode.
Definition: status.h:209
JSMirrorMaxMessageSizeTooBigErr
@ JSMirrorMaxMessageSizeTooBigErr
Stream mirror must have max message size >= source.
Definition: status.h:165
JSConsumerPushMaxWaitingErr
@ JSConsumerPushMaxWaitingErr
Consumer in push mode can not set max waiting.
Definition: status.h:215
JSNoAccountErr
@ JSNoAccountErr
Account not found.
Definition: status.h:170
JSConsumerSmallHeartbeatErr
@ JSConsumerSmallHeartbeatErr
Consumer idle heartbeat needs to be >= 100ms.
Definition: status.h:218
JSMirrorConsumerSetupFailedErr
@ JSMirrorConsumerSetupFailedErr
Generic mirror consumer setup failure.
Definition: status.h:164
JSConsumerDirectRequiresPushErr
@ JSConsumerDirectRequiresPushErr
Consumer direct requires a push based consumer.
Definition: status.h:225
JSStreamNameExistRestoreFailedErr
@ JSStreamNameExistRestoreFailedErr
Stream name already in use, cannot restore.
Definition: status.h:264
JSClusterNotAssignedErr
@ JSClusterNotAssignedErr
JetStream cluster not assigned to this server.
Definition: status.h:142
JSStreamSealedErr
@ JSStreamSealedErr
Invalid operation on sealed stream.
Definition: status.h:243
JSConsumerMaxRequestExpiresToSmallErr
@ JSConsumerMaxRequestExpiresToSmallErr
Consumer max request expires needs to be > 1ms.
Definition: status.h:249
JSConsumerDurableNameNotSetErr
@ JSConsumerDurableNameNotSetErr
Consumer expected to be durable but a durable name was not set.
Definition: status.h:153
JSConsumerNotFoundErr
@ JSConsumerNotFoundErr
Consumer not found.
Definition: status.h:149
JSRaftGeneralErr
@ JSRaftGeneralErr
General RAFT error.
Definition: status.h:176
JSConsumerBadDurableNameErr
@ JSConsumerBadDurableNameErr
Durable name can not contain '.', '*', '>'.
Definition: status.h:237
JSConsumerOfflineErr
@ JSConsumerOfflineErr
Consumer is offline.
Definition: status.h:253
JSConsumerInvalidDeliverSubjectErr
@ JSConsumerInvalidDeliverSubjectErr
Invalid push consumer deliver subject.
Definition: status.h:246
JSMaximumConsumersLimitErr
@ JSMaximumConsumersLimitErr
Maximum consumers exceeds account limit.
Definition: status.h:161
JSNotEnabledForAccountErr
@ JSNotEnabledForAccountErr
JetStream not enabled for account.
Definition: status.h:174
JSStreamWrongLastSequenceErr
@ JSStreamWrongLastSequenceErr
Wrong last sequence.
Definition: status.h:206
JSMirrorWithSourcesErr
@ JSMirrorWithSourcesErr
Stream mirrors can not also contain other sources.
Definition: status.h:166
JSConsumerNameContainsPathSeparatorsErr
@ JSConsumerNameContainsPathSeparatorsErr
Consumer name can not contain path separators.
Definition: status.h:261
JSConsumerCreateFilterSubjectMismatchErr
@ JSConsumerCreateFilterSubjectMismatchErr
Consumer create request did not match filtered subject from create subject.
Definition: status.h:265
JSClusterServerNotMemberErr
@ JSClusterServerNotMemberErr
Server is not a member of the cluster.
Definition: status.h:179
JSConsumerInvalidSamplingErr
@ JSConsumerInvalidSamplingErr
Failed to parse consumer sampling configuration.
Definition: status.h:230
JSConsumerDescriptionTooLongErr
@ JSConsumerDescriptionTooLongErr
Consumer description is too long.
Definition: status.h:241
JSNotEmptyRequestErr
@ JSNotEmptyRequestErr
Expected an empty request payload.
Definition: status.h:173
JSStreamMsgDeleteFailed
@ JSStreamMsgDeleteFailed
Generic message deletion failure error.
Definition: status.h:192
JSStreamRestoreErr
@ JSStreamRestoreErr
Restore failed.
Definition: status.h:197
JSStreamStoreFailedErr
@ JSStreamStoreFailedErr
Generic error when storing a message failed.
Definition: status.h:212
JSTemplateNameNotMatchSubjectErr
@ JSTemplateNameNotMatchSubjectErr
Template name in subject does not match request.
Definition: status.h:208
JSConsumerWithFlowControlNeedsHeartbeatsErr
@ JSConsumerWithFlowControlNeedsHeartbeatsErr
Consumer with flow control also needs heartbeats.
Definition: status.h:242
JSStreamGeneralError
@ JSStreamGeneralError
General stream failure.
Definition: status.h:186
JSConsumerMaxRequestBatchNegativeErr
@ JSConsumerMaxRequestBatchNegativeErr
Consumer max request batch needs to be > 0.
Definition: status.h:248
JSConsumerPullRequiresAckErr
@ JSConsumerPullRequiresAckErr
Consumer in pull mode requires explicit ack policy.
Definition: status.h:219
JSStreamMoveNotInProgressErr
@ JSStreamMoveNotInProgressErr
Stream move not in progress.
Definition: status.h:263
JSStreamMoveInProgressErr
@ JSStreamMoveInProgressErr
Stream move already in progress.
Definition: status.h:258
JSStreamSnapshotErr
@ JSStreamSnapshotErr
Snapshot failed.
Definition: status.h:199
JSConsumerMaxPendingAckExcessErr
@ JSConsumerMaxPendingAckExcessErr
Consumer max ack pending exceeds system limit.
Definition: status.h:255
JSSourceMaxMessageSizeTooBigErr
@ JSSourceMaxMessageSizeTooBigErr
Stream source must have max message size >= target.
Definition: status.h:181
JSBadRequestErr
@ JSBadRequestErr
Bad request.
Definition: status.h:138
JSNoLimitsErr
@ JSNoLimitsErr
No JetStream default or applicable tiered limit present.
Definition: status.h:254
JSTempStorageFailedErr
@ JSTempStorageFailedErr
JetStream unable to open temp storage for restore.
Definition: status.h:207
JSInsufficientResourcesErr
@ JSInsufficientResourcesErr
Insufficient resources.
Definition: status.h:158
JSStreamWrongLastMsgIDErr
@ JSStreamWrongLastMsgIDErr
Wrong last msg ID.
Definition: status.h:205
JSMemoryResourcesExceededErr
@ JSMemoryResourcesExceededErr
Insufficient memory resources available.
Definition: status.h:163
JSSnapshotDeliverSubjectInvalidErr
@ JSSnapshotDeliverSubjectInvalidErr
Deliver subject not valid.
Definition: status.h:150
JSClusterPeerNotMemberErr
@ JSClusterPeerNotMemberErr
Peer not a member.
Definition: status.h:175
JSClusterNoPeersErr
@ JSClusterNoPeersErr
No suitable peers for placement.
Definition: status.h:140
JSStreamExternalDelPrefixOverlapsErr
@ JSStreamExternalDelPrefixOverlapsErr
Stream external delivery prefix overlaps with stream subject.
Definition: status.h:157
JSClusterIncompleteErr
@ JSClusterIncompleteErr
Incomplete results.
Definition: status.h:139
JSSourceConsumerSetupFailedErr
@ JSSourceConsumerSetupFailedErr
General source consumer setup failure.
Definition: status.h:180
JSStreamInvalidErr
@ JSStreamInvalidErr
Stream not valid.
Definition: status.h:231
JSClusterNotActiveErr
@ JSClusterNotActiveErr
JetStream not in clustered mode.
Definition: status.h:141
JSStreamNameExistErr
@ JSStreamNameExistErr
Stream name already in use.
Definition: status.h:193
JSConsumerMaxDeliverBackoffErr
@ JSConsumerMaxDeliverBackoffErr
Max deliver is required to be > length of backoff values.
Definition: status.h:250
JSConsumerCreateErr
@ JSConsumerCreateErr
General consumer creation failure string.
Definition: status.h:147
JSConsumerDeliverCycleErr
@ JSConsumerDeliverCycleErr
Consumer deliver subject forms a cycle.
Definition: status.h:216
JSMirrorWithSubjectFiltersErr
@ JSMirrorWithSubjectFiltersErr
Stream mirrors can not contain filtered subjects.
Definition: status.h:168
JSNotEnabledErr
@ JSNotEnabledErr
JetStream not enabled.
Definition: status.h:211
JSConsumerDurableNameNotInSubjectErr
@ JSConsumerDurableNameNotInSubjectErr
Consumer expected to be durable but no durable name set in subject.
Definition: status.h:151
JSStreamRollupFailedErr
@ JSStreamRollupFailedErr
Generic stream rollup failure.
Definition: status.h:245
natsStatus
natsStatus
Status returned by most of the APIs.
Definition: status.h:50
NATS_DRAINING
@ NATS_DRAINING
Definition: status.h:122
NATS_SECURE_CONNECTION_WANTED
@ NATS_SECURE_CONNECTION_WANTED
Definition: status.h:66
NATS_PROTOCOL_ERROR
@ NATS_PROTOCOL_ERROR
Definition: status.h:54
NATS_MISMATCH
@ NATS_MISMATCH
For JetStream subscriptions, it means that a consumer sequence mismatch was discovered.
Definition: status.h:129
NATS_INVALID_SUBSCRIPTION
@ NATS_INVALID_SUBSCRIPTION
Definition: status.h:84
NATS_INSUFFICIENT_BUFFER
@ NATS_INSUFFICIENT_BUFFER
A buffer is not large enough to accommodate the data.
Definition: status.h:100
NATS_MISSED_HEARTBEAT
@ NATS_MISSED_HEARTBEAT
For JetStream subscriptions, it means that the library detected that server heartbeats have been miss...
Definition: status.h:131
NATS_ERR
@ NATS_ERR
Generic error.
Definition: status.h:53
NATS_IO_ERROR
@ NATS_IO_ERROR
IO Error (network communication).
Definition: status.h:56
NATS_NO_SERVER
@ NATS_NO_SERVER
Definition: status.h:62
NATS_CONNECTION_AUTH_FAILED
@ NATS_CONNECTION_AUTH_FAILED
The connection failed due to authentication error.
Definition: status.h:72
NATS_CONNECTION_CLOSED
@ NATS_CONNECTION_CLOSED
Definition: status.h:60
NATS_NOT_YET_CONNECTED
@ NATS_NOT_YET_CONNECTED
Definition: status.h:118
NATS_NO_MEMORY
@ NATS_NO_MEMORY
Definition: status.h:102
NATS_INVALID_ARG
@ NATS_INVALID_ARG
Definition: status.h:81
NATS_INVALID_SUBJECT
@ NATS_INVALID_SUBJECT
Invalid subject, for instance NULL or empty string.
Definition: status.h:80
NATS_FAILED_TO_INITIALIZE
@ NATS_FAILED_TO_INITIALIZE
The library failed to initialize.
Definition: status.h:110
NATS_INVALID_TIMEOUT
@ NATS_INVALID_TIMEOUT
Timeout must be positive numbers.
Definition: status.h:86
NATS_LINE_TOO_LONG
@ NATS_LINE_TOO_LONG
Definition: status.h:57
NATS_SSL_ERROR
@ NATS_SSL_ERROR
Definition: status.h:113
NATS_INVALID_QUEUE_NAME
@ NATS_INVALID_QUEUE_NAME
An invalid queue name was passed when creating a queue subscription.
Definition: status.h:125
NATS_NO_SERVER_SUPPORT
@ NATS_NO_SERVER_SUPPORT
The server does not support this action.
Definition: status.h:116
NATS_SYS_ERROR
@ NATS_SYS_ERROR
Some system function returned an error.
Definition: status.h:105
NATS_MAX_DELIVERED_MSGS
@ NATS_MAX_DELIVERED_MSGS
Definition: status.h:97
NATS_ILLEGAL_STATE
@ NATS_ILLEGAL_STATE
Definition: status.h:88
NATS_OK
@ NATS_OK
Success.
Definition: status.h:51
NATS_STALE_CONNECTION
@ NATS_STALE_CONNECTION
Definition: status.h:64
NATS_NO_RESPONDERS
@ NATS_NO_RESPONDERS
No responders were running when the server received the request.
Definition: status.h:127
NATS_TIMEOUT
@ NATS_TIMEOUT
Definition: status.h:107
NATS_SECURE_CONNECTION_REQUIRED
@ NATS_SECURE_CONNECTION_REQUIRED
The server expects a TLS connection.
Definition: status.h:68
NATS_CONNECTION_DISCONNECTED
@ NATS_CONNECTION_DISCONNECTED
Definition: status.h:69
NATS_NOT_PERMITTED
@ NATS_NOT_PERMITTED
The action is not permitted.
Definition: status.h:73
NATS_NOT_FOUND
@ NATS_NOT_FOUND
Definition: status.h:74
NATS_ADDRESS_MISSING
@ NATS_ADDRESS_MISSING
Definition: status.h:77
NATS_NOT_INITIALIZED
@ NATS_NOT_INITIALIZED
The library is not yet initialized.
Definition: status.h:111
NATS_SLOW_CONSUMER
@ NATS_SLOW_CONSUMER
Definition: status.h:92
NATS_MAX_PAYLOAD
@ NATS_MAX_PAYLOAD
Definition: status.h:95
natsConnStatus
natsConnStatus
The connection state.
Definition: status.h:24
NATS_CONN_STATUS_DISCONNECTED
@ NATS_CONN_STATUS_DISCONNECTED
The connection has been disconnected.
Definition: status.h:37
NATS_CONN_STATUS_CONNECTED
@ NATS_CONN_STATUS_CONNECTED
The connection is connected.
Definition: status.h:39
NATS_CONN_STATUS_CONNECTING
@ NATS_CONN_STATUS_CONNECTING
The connection is in the process or connecting.
Definition: status.h:38
NATS_CONN_STATUS_CLOSED
@ NATS_CONN_STATUS_CLOSED
The connection is closed.
Definition: status.h:40
NATS_CONN_STATUS_DRAINING_SUBS
@ NATS_CONN_STATUS_DRAINING_SUBS
The connection is draining subscriptions.
Definition: status.h:42
NATS_CONN_STATUS_DRAINING_PUBS
@ NATS_CONN_STATUS_DRAINING_PUBS
The connection is draining publishers.
Definition: status.h:43
NATS_CONN_STATUS_RECONNECTING
@ NATS_CONN_STATUS_RECONNECTING
The connection is in the process or reconnecting.
Definition: status.h:41