NATS C Client with JetStream and Streaming support: status.h Source File

NATS C Client with JetStream and Streaming support 3.4.1 The nats.io C Client, Supported by Synadia Communications Inc.

Loading...
Searching...
No Matches
status.h
Go to the documentation of this file.
1// Copyright 2015-2022 The NATS Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14#ifndef STATUS_H_
15#define STATUS_H_
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21
23 typedef enum
24{
25#if defined(NATS_CONN_STATUS_NO_PREFIX)
26 // This is deprecated and applications referencing connection
27 // status should be updated to use the values prefixed with NATS_CONN_STATUS_.
28
29 DISCONNECTED = 0,
30 CONNECTING,
31 CONNECTED,
32 CLOSED,
33 RECONNECTING,
34 DRAINING_SUBS,
35 DRAINING_PUBS,
36#else
37 NATS_CONN_STATUS_DISCONNECTED = 0,
38 NATS_CONN_STATUS_CONNECTING,
39 NATS_CONN_STATUS_CONNECTED,
40 NATS_CONN_STATUS_CLOSED,
41 NATS_CONN_STATUS_RECONNECTING,
42 NATS_CONN_STATUS_DRAINING_SUBS,
43 NATS_CONN_STATUS_DRAINING_PUBS,
44#endif
45
46} natsConnStatus;
47
49 typedef enum
50{
51 NATS_OK = 0,
52
53 NATS_ERR,
54 NATS_PROTOCOL_ERROR,
56 NATS_IO_ERROR,
57 NATS_LINE_TOO_LONG,
59
60 NATS_CONNECTION_CLOSED,
62 NATS_NO_SERVER,
64 NATS_STALE_CONNECTION,
66 NATS_SECURE_CONNECTION_WANTED,
68 NATS_SECURE_CONNECTION_REQUIRED,
69 NATS_CONNECTION_DISCONNECTED,
71
72 NATS_CONNECTION_AUTH_FAILED,
73 NATS_NOT_PERMITTED,
74 NATS_NOT_FOUND,
76
77 NATS_ADDRESS_MISSING,
79
80 NATS_INVALID_SUBJECT,
81 NATS_INVALID_ARG,
84 NATS_INVALID_SUBSCRIPTION,
86 NATS_INVALID_TIMEOUT,
87
88 NATS_ILLEGAL_STATE,
91
92 NATS_SLOW_CONSUMER,
94
95 NATS_MAX_PAYLOAD,
97 NATS_MAX_DELIVERED_MSGS,
99
100 NATS_INSUFFICIENT_BUFFER,
101
102 NATS_NO_MEMORY,
104
105 NATS_SYS_ERROR,
106
107 NATS_TIMEOUT,
109
110 NATS_FAILED_TO_INITIALIZE,
111 NATS_NOT_INITIALIZED,
112
113 NATS_SSL_ERROR,
115
116 NATS_NO_SERVER_SUPPORT,
117
118 NATS_NOT_YET_CONNECTED,
121
122 NATS_DRAINING,
124
125 NATS_INVALID_QUEUE_NAME,
126
127 NATS_NO_RESPONDERS,
128
129 NATS_MISMATCH,
130
131 NATS_MISSED_HEARTBEAT,
132
133} natsStatus;
134
135 typedef enum {
136
137 JSAccountResourcesExceededErr = 10002,
138 JSBadRequestErr = 10003,
139 JSClusterIncompleteErr = 10004,
140 JSClusterNoPeersErr = 10005,
141 JSClusterNotActiveErr = 10006,
142 JSClusterNotAssignedErr = 10007,
143 JSClusterNotAvailErr = 10008,
144 JSClusterNotLeaderErr = 10009,
145 JSClusterRequiredErr = 10010,
146 JSClusterTagsErr = 10011,
147 JSConsumerCreateErr = 10012,
148 JSConsumerNameExistErr = 10013,
149 JSConsumerNotFoundErr = 10014,
150 JSSnapshotDeliverSubjectInvalidErr = 10015,
151 JSConsumerDurableNameNotInSubjectErr = 10016,
152 JSConsumerDurableNameNotMatchSubjectErr = 10017,
153 JSConsumerDurableNameNotSetErr = 10018,
154 JSConsumerEphemeralWithDurableInSubjectErr = 10019,
155 JSConsumerEphemeralWithDurableNameErr = 10020,
156 JSStreamExternalApiOverlapErr = 10021,
157 JSStreamExternalDelPrefixOverlapsErr = 10022,
158 JSInsufficientResourcesErr = 10023,
159 JSStreamInvalidExternalDeliverySubjErr = 10024,
160 JSInvalidJSONErr = 10025,
161 JSMaximumConsumersLimitErr = 10026,
162 JSMaximumStreamsLimitErr = 10027,
163 JSMemoryResourcesExceededErr = 10028,
164 JSMirrorConsumerSetupFailedErr = 10029,
165 JSMirrorMaxMessageSizeTooBigErr = 10030,
166 JSMirrorWithSourcesErr = 10031,
167 JSMirrorWithStartSeqAndTimeErr = 10032,
168 JSMirrorWithSubjectFiltersErr = 10033,
169 JSMirrorWithSubjectsErr = 10034,
170 JSNoAccountErr = 10035,
171 JSClusterUnSupportFeatureErr = 10036,
172 JSNoMessageFoundErr = 10037,
173 JSNotEmptyRequestErr = 10038,
174 JSNotEnabledForAccountErr = 10039,
175 JSClusterPeerNotMemberErr = 10040,
176 JSRaftGeneralErr = 10041,
177 JSRestoreSubscribeFailedErr = 10042,
178 JSSequenceNotFoundErr = 10043,
179 JSClusterServerNotMemberErr = 10044,
180 JSSourceConsumerSetupFailedErr = 10045,
181 JSSourceMaxMessageSizeTooBigErr = 10046,
182 JSStorageResourcesExceededErr = 10047,
183 JSStreamAssignmentErr = 10048,
184 JSStreamCreateErr = 10049,
185 JSStreamDeleteErr = 10050,
186 JSStreamGeneralError = 10051,
187 JSStreamInvalidConfig = 10052,
188 JSStreamLimitsErr = 10053,
189 JSStreamMessageExceedsMaximumErr = 10054,
190 JSStreamMirrorNotUpdatableErr = 10055,
191 JSStreamMismatchErr = 10056,
192 JSStreamMsgDeleteFailed = 10057,
193 JSStreamNameExistErr = 10058,
194 JSStreamNotFoundErr = 10059,
195 JSStreamNotMatchErr = 10060,
196 JSStreamReplicasNotUpdatableErr = 10061,
197 JSStreamRestoreErr = 10062,
198 JSStreamSequenceNotMatchErr = 10063,
199 JSStreamSnapshotErr = 10064,
200 JSStreamSubjectOverlapErr = 10065,
201 JSStreamTemplateCreateErr = 10066,
202 JSStreamTemplateDeleteErr = 10067,
203 JSStreamTemplateNotFoundErr = 10068,
204 JSStreamUpdateErr = 10069,
205 JSStreamWrongLastMsgIDErr = 10070,
206 JSStreamWrongLastSequenceErr = 10071,
207 JSTempStorageFailedErr = 10072,
208 JSTemplateNameNotMatchSubjectErr = 10073,
209 JSStreamReplicasNotSupportedErr = 10074,
210 JSPeerRemapErr = 10075,
211 JSNotEnabledErr = 10076,
212 JSStreamStoreFailedErr = 10077,
213 JSConsumerConfigRequiredErr = 10078,
214 JSConsumerDeliverToWildcardsErr = 10079,
215 JSConsumerPushMaxWaitingErr = 10080,
216 JSConsumerDeliverCycleErr = 10081,
217 JSConsumerMaxPendingAckPolicyRequiredErr = 10082,
218 JSConsumerSmallHeartbeatErr = 10083,
219 JSConsumerPullRequiresAckErr = 10084,
220 JSConsumerPullNotDurableErr = 10085,
221 JSConsumerPullWithRateLimitErr = 10086,
222 JSConsumerMaxWaitingNegativeErr = 10087,
223 JSConsumerHBRequiresPushErr = 10088,
224 JSConsumerFCRequiresPushErr = 10089,
225 JSConsumerDirectRequiresPushErr = 10090,
226 JSConsumerDirectRequiresEphemeralErr = 10091,
227 JSConsumerOnMappedErr = 10092,
228 JSConsumerFilterNotSubsetErr = 10093,
229 JSConsumerInvalidPolicyErr = 10094,
230 JSConsumerInvalidSamplingErr = 10095,
231 JSStreamInvalidErr = 10096,
232 JSConsumerWQRequiresExplicitAckErr = 10098,
233 JSConsumerWQMultipleUnfilteredErr = 10099,
234 JSConsumerWQConsumerNotUniqueErr = 10100,
235 JSConsumerWQConsumerNotDeliverAllErr = 10101,
236 JSConsumerNameTooLongErr = 10102,
237 JSConsumerBadDurableNameErr = 10103,
238 JSConsumerStoreFailedErr = 10104,
239 JSConsumerExistingActiveErr = 10105,
240 JSConsumerReplacementWithDifferentNameErr = 10106,
241 JSConsumerDescriptionTooLongErr = 10107,
242 JSConsumerWithFlowControlNeedsHeartbeatsErr = 10108,
243 JSStreamSealedErr = 10109,
244 JSStreamPurgeFailedErr = 10110,
245 JSStreamRollupFailedErr = 10111,
246 JSConsumerInvalidDeliverSubjectErr = 10112,
247 JSStreamMaxBytesRequiredErr = 10113,
248 JSConsumerMaxRequestBatchNegativeErr = 10114,
249 JSConsumerMaxRequestExpiresToSmallErr = 10115,
250 JSConsumerMaxDeliverBackoffErr = 10116,
251 JSStreamInfoMaxSubjectsErr = 10117,
252 JSStreamOfflineErr = 10118,
253 JSConsumerOfflineErr = 10119,
254 JSNoLimitsErr = 10120,
255 JSConsumerMaxPendingAckExcessErr = 10121,
256 JSStreamMaxStreamBytesExceededErr = 10122,
257 JSStreamMoveAndScaleErr = 10123,
258 JSStreamMoveInProgressErr = 10124,
259 JSConsumerMaxRequestBatchExceededErr = 10125,
260 JSConsumerReplicasExceedsStreamErr = 10126,
261
262} jsErrCode;
263
264#ifdef __cplusplus
265}
266#endif
267
268#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
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
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
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
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
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
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