Expand description
Session, request, status and stream-reset error codes. Error and status code registries defined by MoQ Transport draft-13.
Draft-13 predates the IANA registries introduced in draft-14. Its code points are listed
inline in the sections that use them, in two-column Code | Reason tables that assign no
symbolic ALLCAPS name — the Reason cell is a human-readable phrase such as
Key-Value Formatting Error. Each variant name here is derived mechanically from that
phrase.
Each table is followed in the draft by a bulleted description of every code it assigns.
Each variant below quotes its Reason cell verbatim, so a variant can be matched back to
its table row by eye, followed by that description, quoted from the draft unaltered. Where
the draft’s own wording is ungrammatical or has an unbalanced parenthesis it is reproduced
as printed rather than corrected. Nothing beyond the draft’s text is asserted about what a
code means.
Every from_u64 returns None for a code this draft does not assign. Peers do send codes
from other drafts and from private extensions, and an unrecognised code is a value to pass
through or report, not a decode failure.
The eight registries transcribed here, with their draft-13 sections:
- 3.4 Termination —
SessionErrorCode - 8.9 SUBSCRIBE_ERROR —
SubscribeErrorCode - 8.12 SUBSCRIBE_DONE —
SubscribeDoneStatusCode - 8.15 PUBLISH_ERROR —
PublishErrorCode - 8.18 FETCH_ERROR —
FetchErrorCode - 8.25 ANNOUNCE_ERROR —
AnnounceErrorCode - 8.30 SUBSCRIBE_NAMESPACE_ERROR —
SubscribeNamespaceErrorCode - 9.4.3 Closing Subgroup Streams —
StreamResetErrorCode
Two further messages carry error codes without defining a registry: TRACK_STATUS_ERROR (Section 8.22) reuses the SUBSCRIBE_ERROR codes and ANNOUNCE_CANCEL (Section 8.27) reuses the ANNOUNCE_ERROR codes.
Draft-13 reserves no code ranges for greasing in any of these tables; every row is a single code point.
Enums§
- Announce
Error Code - ANNOUNCE_ERROR codes (draft-13 Section 8.25).
- Fetch
Error Code - FETCH_ERROR codes (draft-13 Section 8.18).
- Publish
Error Code - PUBLISH_ERROR codes (draft-13 Section 8.15).
- Session
Error Code - Session termination codes (draft-13 Section 3.4, Termination).
- Stream
Reset Error Code - Data stream reset codes (draft-13 Section 9.4.3, Closing Subgroup Streams).
- Subscribe
Done Status Code - SUBSCRIBE_DONE status codes (draft-13 Section 8.12).
- Subscribe
Error Code - SUBSCRIBE_ERROR codes (draft-13 Section 8.9).
- Subscribe
Namespace Error Code - SUBSCRIBE_NAMESPACE_ERROR codes (draft-13 Section 8.30).