A publisher sends a SUBSCRIBE_ERROR control message in response to a failed SUBSCRIBE.
SUBSCRIBE_ERROR
{
Type (i) = 0x5,
Length (i),
Subscribe ID (i),
Error Code (i),
Reason Phrase Length (i),
Reason Phrase (..),
Track Alias (i),
}
-
Subscribe ID: Subscription Identifier as defined in Section 8.6.
-
Error Code: Identifies an integer error code for subscription failure.
-
Reason Phrase: Provides the reason for subscription error.
-
Track Alias: When Error Code is 'Retry Track Alias', the subscriber SHOULD re-issue the SUBSCRIBE with this Track Alias instead. If this Track Alias is already in use, the subscriber MUST close the connection with a Duplicate Track Alias error (Section 3.4).
The application SHOULD use a relevant error code in SUBSCRIBE_ERROR, as defined below:
| Code | Reason |
|---|---|
| 0x0 | Internal Error |
| 0x1 | Unauthorized |
| 0x2 | Timeout |
| 0x3 | Not Supported |
| 0x4 | Track Does Not Exist |
| 0x5 | Invalid Range |
| 0x6 | Retry Track Alias |