Skip to main content

Module error_codes

Module error_codes 

Source
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:

Draft-12 reserves no code ranges for greasing in any of these tables.

Enums§

AnnounceErrorCode
ANNOUNCE_ERROR codes (draft-12 section 8.24).
FetchErrorCode
FETCH_ERROR codes (draft-12 section 8.18).
PublishErrorCode
PUBLISH_ERROR codes (draft-12 section 8.15).
SessionErrorCode
Session termination error codes (draft-12 section 3.4, Termination).
StreamResetErrorCode
Data stream reset error codes (draft-12 section 9.4.3, Closing Subgroup Streams).
SubscribeAnnouncesErrorCode
SUBSCRIBE_ANNOUNCES_ERROR codes (draft-12 section 8.29).
SubscribeDoneStatusCode
SUBSCRIBE_DONE status codes (draft-12 section 8.12).
SubscribeErrorCode
SUBSCRIBE_ERROR codes (draft-12 section 8.9).
TrackStatusCode
TRACK_STATUS Status Code values (draft-12, Section 8.21).