Expand description
Error, status and termination code registries defined by MoQ Transport draft-12.
Draft-12 predates the IANA registries introduced in draft-14. Its code tables have
exactly two columns, Code and Reason, and the Reason cell is a human-readable
phrase rather than an ALLCAPS symbolic name — draft-12 gives its error, status and
termination codes no symbolic names. (It does name other things that way, such as the
control message types in section 8 and the authorization token operations in section
8.2.1.1, but not these.) Each variant name here is therefore derived mechanically from
the Reason phrase.
Each table is followed in the draft by a definition list giving one sentence per code.
Every variant below carries its Reason phrase, so the mapping back to the table stays
checkable, followed by that sentence. All 71 codes in these eight tables are described
this way in the draft; nothing here is invented. Cross-references that the draft renders
as hyperlinks appear as plain section numbers. One entry is repunctuated: the draft
writes the Expired Auth Token sentence as “Authorization token has expired Section
8.2.1.1 ).” with an unbalanced parenthesis, and it appears here in the “(see section
8.2.1.1)” form its neighbours use.
Every from_u64 returns None for a code the draft does not assign. Peers do send
codes from other drafts and from private extensions, so an unrecognised code is a
value to pass through, not a decoding failure.
The eight registries transcribed here, with their draft-12 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.24 ANNOUNCE_ERROR —
AnnounceErrorCode - 8.29 SUBSCRIBE_ANNOUNCES_ERROR —
SubscribeAnnouncesErrorCode - 9.4.3 Closing Subgroup Streams —
StreamResetErrorCode
Draft-12 reserves no code ranges for greasing in any of these tables.
Enums§
- Announce
Error Code - ANNOUNCE_ERROR codes (draft-12 section 8.24).
- Fetch
Error Code - FETCH_ERROR codes (draft-12 section 8.18).
- Publish
Error Code - PUBLISH_ERROR codes (draft-12 section 8.15).
- Session
Error Code - Session termination error codes (draft-12 section 3.4, Termination).
- Stream
Reset Error Code - Data stream reset error codes (draft-12 section 9.4.3, Closing Subgroup Streams).
- Subscribe
Announces Error Code - SUBSCRIBE_ANNOUNCES_ERROR codes (draft-12 section 8.29).
- Subscribe
Done Status Code - SUBSCRIBE_DONE status codes (draft-12 section 8.12).
- Subscribe
Error Code - SUBSCRIBE_ERROR codes (draft-12 section 8.9).
- Track
Status Code - TRACK_STATUS Status Code values (draft-12, Section 8.21).