This article describes the Open Transport error codes.

Result code
Value
Meaning
kOTBadAddressErr-3150The specified protocol address was in an incorrect format or contained illegal information.
kOTBadOptionErr-3151The specified protocol options were in an incorrect format or contained illegal information.
kOTAccessErr-3152The user does not have permission to negotiate the specified address or options.
kOTBadReferenceErr-3153The specified EndpointRef or TEndpoint * does not refer to a valid endpoint.
kOTNoAddressErr-3154The endpoint could not allocate an address, or an address was required and not supplied by the client.
kOTOutStateErr-3155The function was issued in the wrong sequence.
kOTBadSequenceErr-3156An invalid sequence number was specified, or a NULL call pointer was specified when rejecting a connection request.
kOTLookErr-3158An asynchronous event has occurred on this endpoint.
kOTBadDataErr-3159The amount of client data specified was not within the bounds allowed by the endpoint.
kOTBufferOverflowErr-3160The number of bytes allocated to hold a result is greater than zero, but not sufficient to store the result.
kOTFlowErr-3161The endpoint is in asynchronous mode, but the flow control mechanism prevents the endpoint from accepting any data at this time.
kOTNoDataErr-3162This endpoint is in non-blocking mode, but no data is currently available. It is also returned by LookupName when no names are found.
kOTNoDisconnectErr-3163No disconnect indication is available.
kOTNoUDErrErr-3164No unit data error indication currently exists on this endpoint.
kOTBadFlagErr-3165An invalid flag was specified.
kOTNoReleaseErr-3166No orderly release indication currently exists on this endpoint.
kOTNotSupportedErr-3167This action is not supported by this endpoint.
kOTStateChangeErr-3168The endpoint is undergoing a transient state change. This error is returned when a function call is made while an endpoint is in the process of changing states. The client should wait for an event indicating the endpoint has finished changing state and call the function again.

Note: The equivalent state-change error code, TSTATECHNG, is not described in the 1992 X/Open XTI specification.

This error is also returned if you attempt to use an "incompatible" function while another operation is still ongoing (for example: calling SndUData while an OptionManagement call is still outstanding).
kOTStructureTypeErr-3169An unsupported structure type was passed in the structType field. This error is also returned when the structType field is inconsistent with the endpoint type.
kOTBadNameErr-3170The endpoint name is invalid.
kOTBadQLenErr-3171The argument qlen when the endpoint was bound with Bind was zero.
kOTAddressBusyErr-3172The requested address is in use, or this endpoint does not support multiple connections with the same local and remote addresses. This result code indicates that a connection already exists. As a return value for a Bind call, it may also indicate that no dynamic addresses are available for protocols or configuration methods that allow dynamic addressing.
kOTIndOutErr-3173There are outstanding connection indications on the endpoint. All other connection indications must be handled either by rejecting them with SndDisconnect, or by accepting them with Accept.
kOTProviderMismatchErr-3174The endpoint that is to accept the connection is not the same kind of endpoint as this one.
kOTResQLenErr-3175When this endpoint was bound (see Bind), the qlen parameter was greater than zero. But to accept a connection on an alternate end-point, such as this one, the endpoint must be bound with a qlen parameter equal to zero.
kOTResAddressErr-3176The address to which this endpoint is bound differs from that of the endpoint that received the connection request; thus, this endpoint cannot accept this connection request.
kOTQFullErr-3177The maximum number of outstanding indications has been reached for the endpoint.
kOTProtocolErr-3178An unspecified protocol error occurred.
kOTBadSyncErr-3179A call to Sync was made at non-SystemTask time.
kOTCanceledErr-3180An outstanding call was canceled.
kOTNoError0000The function completed execution without error.