Completed
Push — dev ( 3d1b3a...abb445 )
by Olivier
02:17
created

opcua.StatusCodes

Complexity

Total Complexity 0

Size/Duplication

Total Lines 231
Duplicated Lines 0 %

Test Coverage

Coverage 100%
Metric Value
wmc 0
dl 0
loc 231
ccs 231
cts 231
cp 1
1
#AUTOGENERATED!!!
2
3
4 1
class StatusCodes(object):
5 1
    Good = 0
6 1
    Uncertain = 0x40000000
7 1
    Bad = 0x80000000
8 1
    BadUnexpectedError = 0x80010000
9 1
    BadInternalError = 0x80020000
10 1
    BadOutOfMemory = 0x80030000
11 1
    BadResourceUnavailable = 0x80040000
12 1
    BadCommunicationError = 0x80050000
13 1
    BadEncodingError = 0x80060000
14 1
    BadDecodingError = 0x80070000
15 1
    BadEncodingLimitsExceeded = 0x80080000
16 1
    BadRequestTooLarge = 0x80B80000
17 1
    BadResponseTooLarge = 0x80B90000
18 1
    BadUnknownResponse = 0x80090000
19 1
    BadTimeout = 0x800A0000
20 1
    BadServiceUnsupported = 0x800B0000
21 1
    BadShutdown = 0x800C0000
22 1
    BadServerNotConnected = 0x800D0000
23 1
    BadServerHalted = 0x800E0000
24 1
    BadNothingToDo = 0x800F0000
25 1
    BadTooManyOperations = 0x80100000
26 1
    BadTooManyMonitoredItems = 0x80DB0000
27 1
    BadDataTypeIdUnknown = 0x80110000
28 1
    BadCertificateInvalid = 0x80120000
29 1
    BadSecurityChecksFailed = 0x80130000
30 1
    BadCertificateTimeInvalid = 0x80140000
31 1
    BadCertificateIssuerTimeInvalid = 0x80150000
32 1
    BadCertificateHostNameInvalid = 0x80160000
33 1
    BadCertificateUriInvalid = 0x80170000
34 1
    BadCertificateUseNotAllowed = 0x80180000
35 1
    BadCertificateIssuerUseNotAllowed = 0x80190000
36 1
    BadCertificateUntrusted = 0x801A0000
37 1
    BadCertificateRevocationUnknown = 0x801B0000
38 1
    BadCertificateIssuerRevocationUnknown = 0x801C0000
39 1
    BadCertificateRevoked = 0x801D0000
40 1
    BadCertificateIssuerRevoked = 0x801E0000
41 1
    BadCertificateChainIncomplete = 0x810D0000
42 1
    BadUserAccessDenied = 0x801F0000
43 1
    BadIdentityTokenInvalid = 0x80200000
44 1
    BadIdentityTokenRejected = 0x80210000
45 1
    BadSecureChannelIdInvalid = 0x80220000
46 1
    BadInvalidTimestamp = 0x80230000
47 1
    BadNonceInvalid = 0x80240000
48 1
    BadSessionIdInvalid = 0x80250000
49 1
    BadSessionClosed = 0x80260000
50 1
    BadSessionNotActivated = 0x80270000
51 1
    BadSubscriptionIdInvalid = 0x80280000
52 1
    BadRequestHeaderInvalid = 0x802A0000
53 1
    BadTimestampsToReturnInvalid = 0x802B0000
54 1
    BadRequestCancelledByClient = 0x802C0000
55 1
    BadTooManyArguments = 0x80E50000
56 1
    GoodSubscriptionTransferred = 0x002D0000
57 1
    GoodCompletesAsynchronously = 0x002E0000
58 1
    GoodOverload = 0x002F0000
59 1
    GoodClamped = 0x00300000
60 1
    BadNoCommunication = 0x80310000
61 1
    BadWaitingForInitialData = 0x80320000
62 1
    BadNodeIdInvalid = 0x80330000
63 1
    BadNodeIdUnknown = 0x80340000
64 1
    BadAttributeIdInvalid = 0x80350000
65 1
    BadIndexRangeInvalid = 0x80360000
66 1
    BadIndexRangeNoData = 0x80370000
67 1
    BadDataEncodingInvalid = 0x80380000
68 1
    BadDataEncodingUnsupported = 0x80390000
69 1
    BadNotReadable = 0x803A0000
70 1
    BadNotWritable = 0x803B0000
71 1
    BadOutOfRange = 0x803C0000
72 1
    BadNotSupported = 0x803D0000
73 1
    BadNotFound = 0x803E0000
74 1
    BadObjectDeleted = 0x803F0000
75 1
    BadNotImplemented = 0x80400000
76 1
    BadMonitoringModeInvalid = 0x80410000
77 1
    BadMonitoredItemIdInvalid = 0x80420000
78 1
    BadMonitoredItemFilterInvalid = 0x80430000
79 1
    BadMonitoredItemFilterUnsupported = 0x80440000
80 1
    BadFilterNotAllowed = 0x80450000
81 1
    BadStructureMissing = 0x80460000
82 1
    BadEventFilterInvalid = 0x80470000
83 1
    BadContentFilterInvalid = 0x80480000
84 1
    BadFilterOperatorInvalid = 0x80C10000
85 1
    BadFilterOperatorUnsupported = 0x80C20000
86 1
    BadFilterOperandCountMismatch = 0x80C30000
87 1
    BadFilterOperandInvalid = 0x80490000
88 1
    BadFilterElementInvalid = 0x80C40000
89 1
    BadFilterLiteralInvalid = 0x80C50000
90 1
    BadContinuationPointInvalid = 0x804A0000
91 1
    BadNoContinuationPoints = 0x804B0000
92 1
    BadReferenceTypeIdInvalid = 0x804C0000
93 1
    BadBrowseDirectionInvalid = 0x804D0000
94 1
    BadNodeNotInView = 0x804E0000
95 1
    BadServerUriInvalid = 0x804F0000
96 1
    BadServerNameMissing = 0x80500000
97 1
    BadDiscoveryUrlMissing = 0x80510000
98 1
    BadSempahoreFileMissing = 0x80520000
99 1
    BadRequestTypeInvalid = 0x80530000
100 1
    BadSecurityModeRejected = 0x80540000
101 1
    BadSecurityPolicyRejected = 0x80550000
102 1
    BadTooManySessions = 0x80560000
103 1
    BadUserSignatureInvalid = 0x80570000
104 1
    BadApplicationSignatureInvalid = 0x80580000
105 1
    BadNoValidCertificates = 0x80590000
106 1
    BadIdentityChangeNotSupported = 0x80C60000
107 1
    BadRequestCancelledByRequest = 0x805A0000
108 1
    BadParentNodeIdInvalid = 0x805B0000
109 1
    BadReferenceNotAllowed = 0x805C0000
110 1
    BadNodeIdRejected = 0x805D0000
111 1
    BadNodeIdExists = 0x805E0000
112 1
    BadNodeClassInvalid = 0x805F0000
113 1
    BadBrowseNameInvalid = 0x80600000
114 1
    BadBrowseNameDuplicated = 0x80610000
115 1
    BadNodeAttributesInvalid = 0x80620000
116 1
    BadTypeDefinitionInvalid = 0x80630000
117 1
    BadSourceNodeIdInvalid = 0x80640000
118 1
    BadTargetNodeIdInvalid = 0x80650000
119 1
    BadDuplicateReferenceNotAllowed = 0x80660000
120 1
    BadInvalidSelfReference = 0x80670000
121 1
    BadReferenceLocalOnly = 0x80680000
122 1
    BadNoDeleteRights = 0x80690000
123 1
    UncertainReferenceNotDeleted = 0x40BC0000
124 1
    BadServerIndexInvalid = 0x806A0000
125 1
    BadViewIdUnknown = 0x806B0000
126 1
    BadViewTimestampInvalid = 0x80C90000
127 1
    BadViewParameterMismatch = 0x80CA0000
128 1
    BadViewVersionInvalid = 0x80CB0000
129 1
    UncertainNotAllNodesAvailable = 0x40C00000
130 1
    GoodResultsMayBeIncomplete = 0x00BA0000
131 1
    BadNotTypeDefinition = 0x80C80000
132 1
    UncertainReferenceOutOfServer = 0x406C0000
133 1
    BadTooManyMatches = 0x806D0000
134 1
    BadQueryTooComplex = 0x806E0000
135 1
    BadNoMatch = 0x806F0000
136 1
    BadMaxAgeInvalid = 0x80700000
137 1
    BadSecurityModeInsufficient = 0x80E60000
138 1
    BadHistoryOperationInvalid = 0x80710000
139 1
    BadHistoryOperationUnsupported = 0x80720000
140 1
    BadInvalidTimestampArgument = 0x80BD0000
141 1
    BadWriteNotSupported = 0x80730000
142 1
    BadTypeMismatch = 0x80740000
143 1
    BadMethodInvalid = 0x80750000
144 1
    BadArgumentsMissing = 0x80760000
145 1
    BadTooManySubscriptions = 0x80770000
146 1
    BadTooManyPublishRequests = 0x80780000
147 1
    BadNoSubscription = 0x80790000
148 1
    BadSequenceNumberUnknown = 0x807A0000
149 1
    BadMessageNotAvailable = 0x807B0000
150 1
    BadInsufficientClientProfile = 0x807C0000
151 1
    BadStateNotActive = 0x80BF0000
152 1
    BadTcpServerTooBusy = 0x807D0000
153 1
    BadTcpMessageTypeInvalid = 0x807E0000
154 1
    BadTcpSecureChannelUnknown = 0x807F0000
155 1
    BadTcpMessageTooLarge = 0x80800000
156 1
    BadTcpNotEnoughResources = 0x80810000
157 1
    BadTcpInternalError = 0x80820000
158 1
    BadTcpEndpointUrlInvalid = 0x80830000
159 1
    BadRequestInterrupted = 0x80840000
160 1
    BadRequestTimeout = 0x80850000
161 1
    BadSecureChannelClosed = 0x80860000
162 1
    BadSecureChannelTokenUnknown = 0x80870000
163 1
    BadSequenceNumberInvalid = 0x80880000
164 1
    BadProtocolVersionUnsupported = 0x80BE0000
165 1
    BadConfigurationError = 0x80890000
166 1
    BadNotConnected = 0x808A0000
167 1
    BadDeviceFailure = 0x808B0000
168 1
    BadSensorFailure = 0x808C0000
169 1
    BadOutOfService = 0x808D0000
170 1
    BadDeadbandFilterInvalid = 0x808E0000
171 1
    UncertainNoCommunicationLastUsableValue = 0x408F0000
172 1
    UncertainLastUsableValue = 0x40900000
173 1
    UncertainSubstituteValue = 0x40910000
174 1
    UncertainInitialValue = 0x40920000
175 1
    UncertainSensorNotAccurate = 0x40930000
176 1
    UncertainEngineeringUnitsExceeded = 0x40940000
177 1
    UncertainSubNormal = 0x40950000
178 1
    GoodLocalOverride = 0x00960000
179 1
    BadRefreshInProgress = 0x80970000
180 1
    BadConditionAlreadyDisabled = 0x80980000
181 1
    BadConditionAlreadyEnabled = 0x80CC0000
182 1
    BadConditionDisabled = 0x80990000
183 1
    BadEventIdUnknown = 0x809A0000
184 1
    BadEventNotAcknowledgeable = 0x80BB0000
185 1
    BadDialogNotActive = 0x80CD0000
186 1
    BadDialogResponseInvalid = 0x80CE0000
187 1
    BadConditionBranchAlreadyAcked = 0x80CF0000
188 1
    BadConditionBranchAlreadyConfirmed = 0x80D00000
189 1
    BadConditionAlreadyShelved = 0x80D10000
190 1
    BadConditionNotShelved = 0x80D20000
191 1
    BadShelvingTimeOutOfRange = 0x80D30000
192 1
    BadNoData = 0x809B0000
193 1
    BadBoundNotFound = 0x80D70000
194 1
    BadBoundNotSupported = 0x80D80000
195 1
    BadDataLost = 0x809D0000
196 1
    BadDataUnavailable = 0x809E0000
197 1
    BadEntryExists = 0x809F0000
198 1
    BadNoEntryExists = 0x80A00000
199 1
    BadTimestampNotSupported = 0x80A10000
200 1
    GoodEntryInserted = 0x00A20000
201 1
    GoodEntryReplaced = 0x00A30000
202 1
    UncertainDataSubNormal = 0x40A40000
203 1
    GoodNoData = 0x00A50000
204 1
    GoodMoreData = 0x00A60000
205 1
    BadAggregateListMismatch = 0x80D40000
206 1
    BadAggregateNotSupported = 0x80D50000
207 1
    BadAggregateInvalidInputs = 0x80D60000
208 1
    BadAggregateConfigurationRejected = 0x80DA0000
209 1
    GoodDataIgnored = 0x00D90000
210 1
    BadRequestNotAllowed = 0x80E40000
211 1
    GoodEdited = 0x00DC0000
212 1
    GoodPostActionFailed = 0x00DD0000
213 1
    UncertainDominantValueChanged = 0x40DE0000
214 1
    GoodDependentValueChanged = 0x00E00000
215 1
    BadDominantValueChanged = 0x80E10000
216 1
    UncertainDependentValueChanged = 0x40E20000
217 1
    BadDependentValueChanged = 0x80E30000
218 1
    GoodCommunicationEvent = 0x00A70000
219 1
    GoodShutdownEvent = 0x00A80000
220 1
    GoodCallAgain = 0x00A90000
221 1
    GoodNonCriticalTimeout = 0x00AA0000
222 1
    BadInvalidArgument = 0x80AB0000
223 1
    BadConnectionRejected = 0x80AC0000
224 1
    BadDisconnect = 0x80AD0000
225 1
    BadConnectionClosed = 0x80AE0000
226 1
    BadInvalidState = 0x80AF0000
227 1
    BadEndOfStream = 0x80B00000
228 1
    BadNoDataAvailable = 0x80B10000
229 1
    BadWaitingForResponse = 0x80B20000
230 1
    BadOperationAbandoned = 0x80B30000
231 1
    BadExpectedStreamToBlock = 0x80B40000
232 1
    BadWouldBlock = 0x80B50000
233 1
    BadSyntaxError = 0x80B60000
234 1
    BadMaxConnectionsReached = 0x80B70000
235
236
237 1
code_to_name_doc = {
238
    0: ('Good', 'The operation completed successfully.'),
239
    0x40000000: ('Uncertain', 'The operation completed however its outputs may not be usable.'),
240
    0x80000000: ('Bad', 'The operation failed.'),
241
    0x80010000: ('BadUnexpectedError', 'An unexpected error occurred.'),
242
    0x80020000: ('BadInternalError', 'An internal error occurred as a result of a programming or configuration error.'),
243
    0x80030000: ('BadOutOfMemory', 'Not enough memory to complete the operation.'),
244
    0x80040000: ('BadResourceUnavailable', 'An operating system resource is not available.'),
245
    0x80050000: ('BadCommunicationError', 'A low level communication error occurred.'),
246
    0x80060000: ('BadEncodingError', 'Encoding halted because of invalid data in the objects being serialized.'),
247
    0x80070000: ('BadDecodingError', 'Decoding halted because of invalid data in the stream.'),
248
    0x80080000: ('BadEncodingLimitsExceeded', 'The message encoding/decoding limits imposed by the stack have been exceeded.'),
249
    0x80B80000: ('BadRequestTooLarge', 'The request message size exceeds limits set by the server.'),
250
    0x80B90000: ('BadResponseTooLarge', 'The response message size exceeds limits set by the client.'),
251
    0x80090000: ('BadUnknownResponse', 'An unrecognized response was received from the server.'),
252
    0x800A0000: ('BadTimeout', 'The operation timed out.'),
253
    0x800B0000: ('BadServiceUnsupported', 'The server does not support the requested service.'),
254
    0x800C0000: ('BadShutdown', 'The operation was cancelled because the application is shutting down.'),
255
    0x800D0000: ('BadServerNotConnected', 'The operation could not complete because the client is not connected to the server.'),
256
    0x800E0000: ('BadServerHalted', 'The server has stopped and cannot process any requests.'),
257
    0x800F0000: ('BadNothingToDo', 'There was nothing to do because the client passed a list of operations with no elements.'),
258
    0x80100000: ('BadTooManyOperations', 'The request could not be processed because it specified too many operations.'),
259
    0x80DB0000: ('BadTooManyMonitoredItems', 'The request could not be processed because there are too many monitored items in the subscription.'),
260
    0x80110000: ('BadDataTypeIdUnknown', 'The extension object cannot be (de)serialized because the data type id is not recognized.'),
261
    0x80120000: ('BadCertificateInvalid', 'The certificate provided as a parameter is not valid.'),
262
    0x80130000: ('BadSecurityChecksFailed', 'An error occurred verifying security.'),
263
    0x80140000: ('BadCertificateTimeInvalid', 'The Certificate has expired or is not yet valid.'),
264
    0x80150000: ('BadCertificateIssuerTimeInvalid', 'An Issuer Certificate has expired or is not yet valid.'),
265
    0x80160000: ('BadCertificateHostNameInvalid', 'The HostName used to connect to a Server does not match a HostName in the Certificate.'),
266
    0x80170000: ('BadCertificateUriInvalid', 'The URI specified in the ApplicationDescription does not match the URI in the Certificate.'),
267
    0x80180000: ('BadCertificateUseNotAllowed', 'The Certificate may not be used for the requested operation.'),
268
    0x80190000: ('BadCertificateIssuerUseNotAllowed', 'The Issuer Certificate may not be used for the requested operation.'),
269
    0x801A0000: ('BadCertificateUntrusted', 'The Certificate is not trusted.'),
270
    0x801B0000: ('BadCertificateRevocationUnknown', 'It was not possible to determine if the Certificate has been revoked.'),
271
    0x801C0000: ('BadCertificateIssuerRevocationUnknown', 'It was not possible to determine if the Issuer Certificate has been revoked.'),
272
    0x801D0000: ('BadCertificateRevoked', 'The certificate has been revoked.'),
273
    0x801E0000: ('BadCertificateIssuerRevoked', 'The issuer certificate has been revoked.'),
274
    0x810D0000: ('BadCertificateChainIncomplete', 'The certificate chain is incomplete.'),
275
    0x801F0000: ('BadUserAccessDenied', 'User does not have permission to perform the requested operation.'),
276
    0x80200000: ('BadIdentityTokenInvalid', 'The user identity token is not valid.'),
277
    0x80210000: ('BadIdentityTokenRejected', 'The user identity token is valid but the server has rejected it.'),
278
    0x80220000: ('BadSecureChannelIdInvalid', 'The specified secure channel is no longer valid.'),
279
    0x80230000: ('BadInvalidTimestamp', 'The timestamp is outside the range allowed by the server.'),
280
    0x80240000: ('BadNonceInvalid', 'The nonce does appear to be not a random value or it is not the correct length.'),
281
    0x80250000: ('BadSessionIdInvalid', 'The session id is not valid.'),
282
    0x80260000: ('BadSessionClosed', 'The session was closed by the client.'),
283
    0x80270000: ('BadSessionNotActivated', 'The session cannot be used because ActivateSession has not been called.'),
284
    0x80280000: ('BadSubscriptionIdInvalid', 'The subscription id is not valid.'),
285
    0x802A0000: ('BadRequestHeaderInvalid', 'The header for the request is missing or invalid.'),
286
    0x802B0000: ('BadTimestampsToReturnInvalid', 'The timestamps to return parameter is invalid.'),
287
    0x802C0000: ('BadRequestCancelledByClient', 'The request was cancelled by the client.'),
288
    0x80E50000: ('BadTooManyArguments', 'Too many arguments were provided.'),
289
    0x002D0000: ('GoodSubscriptionTransferred', 'The subscription was transferred to another session.'),
290
    0x002E0000: ('GoodCompletesAsynchronously', 'The processing will complete asynchronously.'),
291
    0x002F0000: ('GoodOverload', 'Sampling has slowed down due to resource limitations.'),
292
    0x00300000: ('GoodClamped', 'The value written was accepted but was clamped.'),
293
    0x80310000: ('BadNoCommunication', 'Communication with the data source is defined, but not established, and there is no last known value available.'),
294
    0x80320000: ('BadWaitingForInitialData', 'Waiting for the server to obtain values from the underlying data source.'),
295
    0x80330000: ('BadNodeIdInvalid', 'The syntax of the node id is not valid.'),
296
    0x80340000: ('BadNodeIdUnknown', 'The node id refers to a node that does not exist in the server address space.'),
297
    0x80350000: ('BadAttributeIdInvalid', 'The attribute is not supported for the specified Node.'),
298
    0x80360000: ('BadIndexRangeInvalid', 'The syntax of the index range parameter is invalid.'),
299
    0x80370000: ('BadIndexRangeNoData', 'No data exists within the range of indexes specified.'),
300
    0x80380000: ('BadDataEncodingInvalid', 'The data encoding is invalid.'),
301
    0x80390000: ('BadDataEncodingUnsupported', 'The server does not support the requested data encoding for the node.'),
302
    0x803A0000: ('BadNotReadable', 'The access level does not allow reading or subscribing to the Node.'),
303
    0x803B0000: ('BadNotWritable', 'The access level does not allow writing to the Node.'),
304
    0x803C0000: ('BadOutOfRange', 'The value was out of range.'),
305
    0x803D0000: ('BadNotSupported', 'The requested operation is not supported.'),
306
    0x803E0000: ('BadNotFound', 'A requested item was not found or a search operation ended without success.'),
307
    0x803F0000: ('BadObjectDeleted', 'The object cannot be used because it has been deleted.'),
308
    0x80400000: ('BadNotImplemented', 'Requested operation is not implemented.'),
309
    0x80410000: ('BadMonitoringModeInvalid', 'The monitoring mode is invalid.'),
310
    0x80420000: ('BadMonitoredItemIdInvalid', 'The monitoring item id does not refer to a valid monitored item.'),
311
    0x80430000: ('BadMonitoredItemFilterInvalid', 'The monitored item filter parameter is not valid.'),
312
    0x80440000: ('BadMonitoredItemFilterUnsupported', 'The server does not support the requested monitored item filter.'),
313
    0x80450000: ('BadFilterNotAllowed', 'A monitoring filter cannot be used in combination with the attribute specified.'),
314
    0x80460000: ('BadStructureMissing', 'A mandatory structured parameter was missing or null.'),
315
    0x80470000: ('BadEventFilterInvalid', 'The event filter is not valid.'),
316
    0x80480000: ('BadContentFilterInvalid', 'The content filter is not valid.'),
317
    0x80C10000: ('BadFilterOperatorInvalid', 'An unregognized operator was provided in a filter.'),
318
    0x80C20000: ('BadFilterOperatorUnsupported', 'A valid operator was provided, but the server does not provide support for this filter operator.'),
319
    0x80C30000: ('BadFilterOperandCountMismatch', 'The number of operands provided for the filter operator was less then expected for the operand provided.'),
320
    0x80490000: ('BadFilterOperandInvalid', 'The operand used in a content filter is not valid.'),
321
    0x80C40000: ('BadFilterElementInvalid', 'The referenced element is not a valid element in the content filter.'),
322
    0x80C50000: ('BadFilterLiteralInvalid', 'The referenced literal is not a valid value.'),
323
    0x804A0000: ('BadContinuationPointInvalid', 'The continuation point provide is longer valid.'),
324
    0x804B0000: ('BadNoContinuationPoints', 'The operation could not be processed because all continuation points have been allocated.'),
325
    0x804C0000: ('BadReferenceTypeIdInvalid', 'The operation could not be processed because all continuation points have been allocated.'),
326
    0x804D0000: ('BadBrowseDirectionInvalid', 'The browse direction is not valid.'),
327
    0x804E0000: ('BadNodeNotInView', 'The node is not part of the view.'),
328
    0x804F0000: ('BadServerUriInvalid', 'The ServerUri is not a valid URI.'),
329
    0x80500000: ('BadServerNameMissing', 'No ServerName was specified.'),
330
    0x80510000: ('BadDiscoveryUrlMissing', 'No DiscoveryUrl was specified.'),
331
    0x80520000: ('BadSempahoreFileMissing', 'The semaphore file specified by the client is not valid.'),
332
    0x80530000: ('BadRequestTypeInvalid', 'The security token request type is not valid.'),
333
    0x80540000: ('BadSecurityModeRejected', 'The security mode does not meet the requirements set by the Server.'),
334
    0x80550000: ('BadSecurityPolicyRejected', 'The security policy does not meet the requirements set by the Server.'),
335
    0x80560000: ('BadTooManySessions', 'The server has reached its maximum number of sessions.'),
336
    0x80570000: ('BadUserSignatureInvalid', 'The user token signature is missing or invalid.'),
337
    0x80580000: ('BadApplicationSignatureInvalid', 'The signature generated with the client certificate is missing or invalid.'),
338
    0x80590000: ('BadNoValidCertificates', 'The client did not provide at least one software certificate that is valid and meets the profile requirements for the server.'),
339
    0x80C60000: ('BadIdentityChangeNotSupported', 'The Server does not support changing the user identity assigned to the session.'),
340
    0x805A0000: ('BadRequestCancelledByRequest', 'The request was cancelled by the client with the Cancel service.'),
341
    0x805B0000: ('BadParentNodeIdInvalid', 'The parent node id does not to refer to a valid node.'),
342
    0x805C0000: ('BadReferenceNotAllowed', 'The reference could not be created because it violates constraints imposed by the data model.'),
343
    0x805D0000: ('BadNodeIdRejected', 'The requested node id was reject because it was either invalid or server does not allow node ids to be specified by the client.'),
344
    0x805E0000: ('BadNodeIdExists', 'The requested node id is already used by another node.'),
345
    0x805F0000: ('BadNodeClassInvalid', 'The node class is not valid.'),
346
    0x80600000: ('BadBrowseNameInvalid', 'The browse name is invalid.'),
347
    0x80610000: ('BadBrowseNameDuplicated', 'The browse name is not unique among nodes that share the same relationship with the parent.'),
348
    0x80620000: ('BadNodeAttributesInvalid', 'The node attributes are not valid for the node class.'),
349
    0x80630000: ('BadTypeDefinitionInvalid', 'The type definition node id does not reference an appropriate type node.'),
350
    0x80640000: ('BadSourceNodeIdInvalid', 'The source node id does not reference a valid node.'),
351
    0x80650000: ('BadTargetNodeIdInvalid', 'The target node id does not reference a valid node.'),
352
    0x80660000: ('BadDuplicateReferenceNotAllowed', 'The reference type between the nodes is already defined.'),
353
    0x80670000: ('BadInvalidSelfReference', 'The server does not allow this type of self reference on this node.'),
354
    0x80680000: ('BadReferenceLocalOnly', 'The reference type is not valid for a reference to a remote server.'),
355
    0x80690000: ('BadNoDeleteRights', 'The server will not allow the node to be deleted.'),
356
    0x40BC0000: ('UncertainReferenceNotDeleted', 'The server was not able to delete all target references.'),
357
    0x806A0000: ('BadServerIndexInvalid', 'The server index is not valid.'),
358
    0x806B0000: ('BadViewIdUnknown', 'The view id does not refer to a valid view node.'),
359
    0x80C90000: ('BadViewTimestampInvalid', 'The view timestamp is not available or not supported.'),
360
    0x80CA0000: ('BadViewParameterMismatch', 'The view parameters are not consistent with each other.'),
361
    0x80CB0000: ('BadViewVersionInvalid', 'The view version is not available or not supported.'),
362
    0x40C00000: ('UncertainNotAllNodesAvailable', 'The list of references may not be complete because the underlying system is not available.'),
363
    0x00BA0000: ('GoodResultsMayBeIncomplete', 'The server should have followed a reference to a node in a remote server but did not. The result set may be incomplete.'),
364
    0x80C80000: ('BadNotTypeDefinition', 'The provided Nodeid was not a type definition nodeid.'),
365
    0x406C0000: ('UncertainReferenceOutOfServer', 'One of the references to follow in the relative path references to a node in the address space in another server.'),
366
    0x806D0000: ('BadTooManyMatches', 'The requested operation has too many matches to return.'),
367
    0x806E0000: ('BadQueryTooComplex', 'The requested operation requires too many resources in the server.'),
368
    0x806F0000: ('BadNoMatch', 'The requested operation has no match to return.'),
369
    0x80700000: ('BadMaxAgeInvalid', 'The max age parameter is invalid.'),
370
    0x80E60000: ('BadSecurityModeInsufficient', 'The operation is not permitted over the current secure channel.'),
371
    0x80710000: ('BadHistoryOperationInvalid', 'The history details parameter is not valid.'),
372
    0x80720000: ('BadHistoryOperationUnsupported', 'The server does not support the requested operation.'),
373
    0x80BD0000: ('BadInvalidTimestampArgument', 'The defined timestamp to return was invalid.'),
374
    0x80730000: ('BadWriteNotSupported', 'The server not does support writing the combination of value, status and timestamps provided.'),
375
    0x80740000: ('BadTypeMismatch', 'The value supplied for the attribute is not of the same type as the attribute"s value.'),
376
    0x80750000: ('BadMethodInvalid', 'The method id does not refer to a method for the specified object.'),
377
    0x80760000: ('BadArgumentsMissing', 'The client did not specify all of the input arguments for the method.'),
378
    0x80770000: ('BadTooManySubscriptions', 'The server has reached its  maximum number of subscriptions.'),
379
    0x80780000: ('BadTooManyPublishRequests', 'The server has reached the maximum number of queued publish requests.'),
380
    0x80790000: ('BadNoSubscription', 'There is no subscription available for this session.'),
381
    0x807A0000: ('BadSequenceNumberUnknown', 'The sequence number is unknown to the server.'),
382
    0x807B0000: ('BadMessageNotAvailable', 'The requested notification message is no longer available.'),
383
    0x807C0000: ('BadInsufficientClientProfile', 'The Client of the current Session does not support one or more Profiles that are necessary for the Subscription.'),
384
    0x80BF0000: ('BadStateNotActive', 'The sub-state machine is not currently active.'),
385
    0x807D0000: ('BadTcpServerTooBusy', 'The server cannot process the request because it is too busy.'),
386
    0x807E0000: ('BadTcpMessageTypeInvalid', 'The type of the message specified in the header invalid.'),
387
    0x807F0000: ('BadTcpSecureChannelUnknown', 'The SecureChannelId and/or TokenId are not currently in use.'),
388
    0x80800000: ('BadTcpMessageTooLarge', 'The size of the message specified in the header is too large.'),
389
    0x80810000: ('BadTcpNotEnoughResources', 'There are not enough resources to process the request.'),
390
    0x80820000: ('BadTcpInternalError', 'An internal error occurred.'),
391
    0x80830000: ('BadTcpEndpointUrlInvalid', 'The Server does not recognize the QueryString specified.'),
392
    0x80840000: ('BadRequestInterrupted', 'The request could not be sent because of a network interruption.'),
393
    0x80850000: ('BadRequestTimeout', 'Timeout occurred while processing the request.'),
394
    0x80860000: ('BadSecureChannelClosed', 'The secure channel has been closed.'),
395
    0x80870000: ('BadSecureChannelTokenUnknown', 'The token has expired or is not recognized.'),
396
    0x80880000: ('BadSequenceNumberInvalid', 'The sequence number is not valid.'),
397
    0x80BE0000: ('BadProtocolVersionUnsupported', 'The applications do not have compatible protocol versions.'),
398
    0x80890000: ('BadConfigurationError', 'There is a problem with the configuration that affects the usefulness of the value.'),
399
    0x808A0000: ('BadNotConnected', 'The variable should receive its value from another variable, but has never been configured to do so.'),
400
    0x808B0000: ('BadDeviceFailure', 'There has been a failure in the device/data source that generates the value that has affected the value.'),
401
    0x808C0000: ('BadSensorFailure', 'There has been a failure in the sensor from which the value is derived by the device/data source.'),
402
    0x808D0000: ('BadOutOfService', 'The source of the data is not operational.'),
403
    0x808E0000: ('BadDeadbandFilterInvalid', 'The deadband filter is not valid.'),
404
    0x408F0000: ('UncertainNoCommunicationLastUsableValue', 'Communication to the data source has failed. The variable value is the last value that had a good quality.'),
405
    0x40900000: ('UncertainLastUsableValue', 'Whatever was updating this value has stopped doing so.'),
406
    0x40910000: ('UncertainSubstituteValue', 'The value is an operational value that was manually overwritten.'),
407
    0x40920000: ('UncertainInitialValue', 'The value is an initial value for a variable that normally receives its value from another variable.'),
408
    0x40930000: ('UncertainSensorNotAccurate', 'The value is at one of the sensor limits.'),
409
    0x40940000: ('UncertainEngineeringUnitsExceeded', 'The value is outside of the range of values defined for this parameter.'),
410
    0x40950000: ('UncertainSubNormal', 'The value is derived from multiple sources and has less than the required number of Good sources.'),
411
    0x00960000: ('GoodLocalOverride', 'The value has been overridden.'),
412
    0x80970000: ('BadRefreshInProgress', 'This Condition refresh failed, a Condition refresh operation is already in progress.'),
413
    0x80980000: ('BadConditionAlreadyDisabled', 'This condition has already been disabled.'),
414
    0x80CC0000: ('BadConditionAlreadyEnabled', 'This condition has already been enabled.'),
415
    0x80990000: ('BadConditionDisabled', 'Property not available, this condition is disabled.'),
416
    0x809A0000: ('BadEventIdUnknown', 'The specified event id is not recognized.'),
417
    0x80BB0000: ('BadEventNotAcknowledgeable', 'The event cannot be acknowledged.'),
418
    0x80CD0000: ('BadDialogNotActive', 'The dialog condition is not active.'),
419
    0x80CE0000: ('BadDialogResponseInvalid', 'The response is not valid for the dialog.'),
420
    0x80CF0000: ('BadConditionBranchAlreadyAcked', 'The condition branch has already been acknowledged.'),
421
    0x80D00000: ('BadConditionBranchAlreadyConfirmed', 'The condition branch has already been confirmed.'),
422
    0x80D10000: ('BadConditionAlreadyShelved', 'The condition has already been shelved.'),
423
    0x80D20000: ('BadConditionNotShelved', 'The condition is not currently shelved.'),
424
    0x80D30000: ('BadShelvingTimeOutOfRange', 'The shelving time not within an acceptable range.'),
425
    0x809B0000: ('BadNoData', 'No data exists for the requested time range or event filter.'),
426
    0x80D70000: ('BadBoundNotFound', 'No data found to provide upper or lower bound value.'),
427
    0x80D80000: ('BadBoundNotSupported', 'The server cannot retrieve a bound for the variable.'),
428
    0x809D0000: ('BadDataLost', 'Data is missing due to collection started/stopped/lost.'),
429
    0x809E0000: ('BadDataUnavailable', 'Expected data is unavailable for the requested time range due to an un-mounted volume, an off-line archive or tape, or similar reason for temporary unavailability.'),
430
    0x809F0000: ('BadEntryExists', 'The data or event was not successfully inserted because a matching entry exists.'),
431
    0x80A00000: ('BadNoEntryExists', 'The data or event was not successfully updated because no matching entry exists.'),
432
    0x80A10000: ('BadTimestampNotSupported', 'The client requested history using a timestamp format the server does not support (i.e requested ServerTimestamp when server only supports SourceTimestamp).'),
433
    0x00A20000: ('GoodEntryInserted', 'The data or event was successfully inserted into the historical database.'),
434
    0x00A30000: ('GoodEntryReplaced', 'The data or event field was successfully replaced in the historical database.'),
435
    0x40A40000: ('UncertainDataSubNormal', 'The value is derived from multiple values and has less than the required number of Good values.'),
436
    0x00A50000: ('GoodNoData', 'No data exists for the requested time range or event filter.'),
437
    0x00A60000: ('GoodMoreData', 'The data or event field was successfully replaced in the historical database.'),
438
    0x80D40000: ('BadAggregateListMismatch', 'The requested number of Aggregates does not match the requested number of NodeIds.'),
439
    0x80D50000: ('BadAggregateNotSupported', 'The requested Aggregate is not support by the server.'),
440
    0x80D60000: ('BadAggregateInvalidInputs', 'The aggregate value could not be derived due to invalid data inputs.'),
441
    0x80DA0000: ('BadAggregateConfigurationRejected', 'The aggregate configuration is not valid for specified node.'),
442
    0x00D90000: ('GoodDataIgnored', 'The request pecifies fields which are not valid for the EventType or cannot be saved by the historian.'),
443
    0x80E40000: ('BadRequestNotAllowed', 'The request was rejected by the server because it did not meet the criteria set by the server.'),
444
    0x00DC0000: ('GoodEdited', 'The value does not come from the real source and has been edited by the server.'),
445
    0x00DD0000: ('GoodPostActionFailed', 'There was an error in execution of these post-actions.'),
446
    0x40DE0000: ('UncertainDominantValueChanged', 'The related EngineeringUnit has been changed but the Variable Value is still provided based on the previous unit.'),
447
    0x00E00000: ('GoodDependentValueChanged', 'A dependent value has been changed but the change has not been applied to the device.'),
448
    0x80E10000: ('BadDominantValueChanged', 'The related EngineeringUnit has been changed but this change has not been applied to the device. The Variable Value is still dependent on the previous unit but its status is currently Bad.'),
449
    0x40E20000: ('UncertainDependentValueChanged', 'A dependent value has been changed but the change has not been applied to the device. The quality of the dominant variable is uncertain.'),
450
    0x80E30000: ('BadDependentValueChanged', 'A dependent value has been changed but the change has not been applied to the device. The quality of the dominant variable is Bad.'),
451
    0x00A70000: ('GoodCommunicationEvent', 'The communication layer has raised an event.'),
452
    0x00A80000: ('GoodShutdownEvent', 'The system is shutting down.'),
453
    0x00A90000: ('GoodCallAgain', 'The operation is not finished and needs to be called again.'),
454
    0x00AA0000: ('GoodNonCriticalTimeout', 'A non-critical timeout occurred.'),
455
    0x80AB0000: ('BadInvalidArgument', 'One or more arguments are invalid.'),
456
    0x80AC0000: ('BadConnectionRejected', 'Could not establish a network connection to remote server.'),
457
    0x80AD0000: ('BadDisconnect', 'The server has disconnected from the client.'),
458
    0x80AE0000: ('BadConnectionClosed', 'The network connection has been closed.'),
459
    0x80AF0000: ('BadInvalidState', 'The operation cannot be completed because the object is closed, uninitialized or in some other invalid state.'),
460
    0x80B00000: ('BadEndOfStream', 'Cannot move beyond end of the stream.'),
461
    0x80B10000: ('BadNoDataAvailable', 'No data is currently available for reading from a non-blocking stream.'),
462
    0x80B20000: ('BadWaitingForResponse', 'The asynchronous operation is waiting for a response.'),
463
    0x80B30000: ('BadOperationAbandoned', 'The asynchronous operation was abandoned by the caller.'),
464
    0x80B40000: ('BadExpectedStreamToBlock', 'The stream did not return all data requested (possibly because it is a non-blocking stream).'),
465
    0x80B50000: ('BadWouldBlock', 'Non blocking behaviour is required and the operation would block.'),
466
    0x80B60000: ('BadSyntaxError', 'A value had an invalid syntax.'),
467
    0x80B70000: ('BadMaxConnectionsReached', 'The operation could not be finished because all available connections are in use.'),
468
}
469
470
471 1
def get_name_and_doc(val):
472 1
    if val in code_to_name_doc:
473 1
        return code_to_name_doc[val]
474
    else:
475
        return 'UnknownUaError', 'Unknown StatusCode value: {}'.format(val)
476