UNPKG

node-opcua-transport

Version:

pure nodejs OPCUA SDK - module transport

110 lines (107 loc) 4.59 kB
import { StatusCodes } from "node-opcua-status-code"; export const StatusCodes2 = { /** * The Server cannot process the request because it is too busy. * * It is up to the Server to determine when it needs to return this Message. * * A Server can control the how frequently a Client reconnects by waiting to return this error. */ BadTcpServerTooBusy: StatusCodes.BadTcpServerTooBusy, /** * The type of the Message specified in the header invalid. * Each Message starts with a 4-byte sequence of ASCII values that identifies the Message type. * The Server returns this error if the Message type is not accepted. * Some of the Message types are defined by the SecureChannel layer. */ BadTcpMessageTypeInvalid: StatusCodes.BadTcpMessageTypeInvalid, /** * The SecureChannelId and/or TokenId are not currently in use. * This error is reported by the SecureChannel layer. */ BadTcpSecureChannelUnknown: StatusCodes.BadTcpSecureChannelUnknown, /** * The size of the Message specified in the header is too large. * The Server returns this error if the Message size exceeds its maximum buffer size * or the receive buffer size negotiated during the Hello/Acknowledge exchange. */ BadTcpMessageTooLarge: StatusCodes.BadTcpMessageTooLarge, /** * A timeout occurred while accessing a resource. * It is up to the Server to determine when a timeout occurs. */ BadTimeout: StatusCodes.BadTimeout, /** * There are not enough resources to process the request. * The Server returns this error when it runs out of memory or encounters similar resource problems. * A Server can control the how frequently a Client reconnects by waiting to return this error. */ BadTcpNotEnoughResources: StatusCodes.BadTcpNotEnoughResources, /** * An internal error occurred. * This should only be returned if an unexpected configuration or programming error occurs. */ BadTcpInternalError: StatusCodes.BadTcpInternalError, /** * The Server does not recognize the EndpointUrl specified. */ BadTcpEndpointUrlInvalid: StatusCodes.BadTcpEndpointUrlInvalid, /** * The Message was rejected because it could not be verified. */ BadSecurityChecksFailed: StatusCodes.BadSecurityChecksFailed, /** * The request could not be sent because of a network interruption. */ BadRequestInterrupted: StatusCodes.BadRequestInterrupted, /** * Timeout occurred while processing the request. */ BadRequestTimeout: StatusCodes.BadRequestTimeout, /** * The secure channel has been closed. */ BadSecureChannelClosed: StatusCodes.BadSecureChannelClosed, /** * The SecurityToken has expired or is not recognized. BadSecureChannelTokenUnknown */ BadSecureChannelTokenUnknown: StatusCodes.BadSecureChannelTokenUnknown, /** * The sender Certificate is not trusted by the receiver. */ BadCertificateUntrusted: StatusCodes.BadCertificateUntrusted, /** * The sender Certificate has expired or is not yet valid. */ BadCertificateTimeInvalid: StatusCodes.BadCertificateTimeInvalid, /** * The issuer for the sender Certificate has expired or is not yet valid. */ BadCertificateIssuerTimeInvalid: StatusCodes.BadCertificateIssuerTimeInvalid, /** * The sender’s Certificate may not be used for establishing a secure channel. */ BadCertificateUseNotAllowed: StatusCodes.BadCertificateUseNotAllowed, /** * The issuer Certificate may not be used as a Certificate Authority. */ BadCertificateIssuerUseNotAllowed: StatusCodes.BadCertificateIssuerUseNotAllowed, /** * Could not verify the revocation status of the sender’s Certificate. */ BadCertificateRevocationUnknown: StatusCodes.BadCertificateRevocationUnknown, /** * Could not verify the revocation status of the issuer Certificate. */ BadCertificateIssuerRevocationUnknown: StatusCodes.BadCertificateIssuerRevocationUnknown, /** * The sender Certificate has been revoked by the issuer. */ BadCertificateRevoked: StatusCodes.BadCertificateRevoked /**The issuer Certificate has been revoked by its issuer. */ // todo BadIssuerCertificateRevoked: StatusCodes.BadIssuerCertificateRevoked, /** The receiver Certificate thumbprint is not recognized by the receiver. */ // todo .. BadCertificateUnknown: StatusCodes.BadCertificateUnknown };