The subscriber sends an PUBLISH_ERROR control message to reject a subscription initiated by PUBLISH.
PUBLISH_ERROR Message
{
Type (i) = 0x1F,
Length (i),
Request ID (i),
Error Code (i),
Error Reason (Reason Phrase),
}
-
Request ID: The Request ID of the PUBLISH this message is replying to Section 8.13.
-
Error Code: Identifies an integer error code for failure.
-
Error Reason: Provides the reason for subscription error. See Section 1.3.3.
The application SHOULD use a relevant error code in PUBLISH_ERROR, as defined below:
| Code | Reason |
|---|---|
| 0x0 | Internal Error |
| 0x1 | Unauthorized |
| 0x2 | Timeout |
| 0x3 | Not Supported |
| 0x4 | Uninterested |
-
Internal Error - An implementation specific or generic error occurred.
-
Unauthorized - The publisher is not authorized to publish the given namespace or track.
-
Timeout - The subscription could not be established before an implementation specific timeout.
-
Not Supported - The endpoint does not support the PUBLISH method.
-
Uninterested - The namespace or track is not of interest to the endpoint.