A publisher sends a SUBSCRIBE_NAMESPACE_ERROR control message in response to a failed SUBSCRIBE_NAMESPACE.
SUBSCRIBE_NAMESPACE_ERROR Message {
Type (i) = 0x13,
Length (16),
Request ID (i),
Error Code (i),
Error Reason (Reason Phrase)
}
-
Request ID: The Request ID of the SUBSCRIBE_NAMESPACE this message is replying to Section 9.28.
-
Error Code: Identifies an integer error code for the namespace subscription failure.
-
Error Reason: Provides the reason for the namespace subscription error. See Section 1.4.3.
The application SHOULD use a relevant error code in SUBSCRIBE_NAMESPACE_ERROR, as defined below:
- INTERNAL_ERROR (0x0):
-
An implementation specific or generic error occurred.
- UNAUTHORIZED (0x1):
-
The subscriber is not authorized to subscribe to the given namespace prefix.
- TIMEOUT (0x2):
-
The operation could not be completed before an implementation specific timeout.
- NOT_SUPPORTED (0x3):
-
The endpoint does not support the SUBSCRIBE_NAMESPACE method.
- NAMESPACE_PREFIX_UNKNOWN (0x4):
-
The namespace prefix is not available for subscription.
- NAMESPACE_PREFIX_OVERLAP (0x5):
-
The namespace prefix overlaps with another SUBSCRIBE_NAMESPACE in the same session.
- MALFORMED_AUTH_TOKEN (0x10):
-
Invalid Auth Token serialization during registration (see Section 9.2.1.1).
- EXPIRED_AUTH_TOKEN (0x12):
-
Authorization token has expired (Section 9.2.1.1).