Skip to main content

Module error_codes

Module error_codes 

Source
Expand description

Session termination, error and status code registries. Error, status and termination code registries defined by draft-ietf-moq-transport-08.

One enum per registry. Draft-08 predates the IANA registry tables of the later drafts: its tables carry only a code and a reason phrase, and assign no symbolic ALLCAPS names. Each variant name below is therefore UpperCamelCase derived from the reason phrase, not taken from the draft, and every variant’s doc comment quotes that phrase verbatim in backticks so the mapping back to the draft stays checkable. Where the draft also defines a code in prose, that prose follows the phrase.

from_u64 returns None for any value the draft does not assign. A peer may legitimately send a code from a later draft or a private extension, and an unrecognized code must not be a decode failure at this layer.

Draft-08 assigns no reserved-for-greasing ranges in these registries; every row is a single code point.

Codes that share a spelling across registries do not always share a meaning, and draft-08 spellings do not always carry over to later drafts. Unauthorized is the clearest case: in SessionErrorCode it reports a breach of a pre-negotiated agreement, which is not what the identically named code means in the request-scoped registries or in later drafts.

Enums§

AnnounceErrorCode
ANNOUNCE_ERROR codes (draft-08, section 7.10 “ANNOUNCE_ERROR”).
FetchErrorCode
FETCH_ERROR codes (draft-08, section 7.18 “FETCH_ERROR”).
SessionErrorCode
Session termination codes (draft-08, section 3.5 “Termination”).
SubscribeAnnouncesErrorCode
SUBSCRIBE_ANNOUNCES_ERROR codes (draft-08, section 7.26 “SUBSCRIBE_ANNOUNCES_ERROR”).
SubscribeDoneStatusCode
SUBSCRIBE_DONE status codes (draft-08, section 7.19 “SUBSCRIBE_DONE”).
SubscribeErrorCode
SUBSCRIBE_ERROR codes (draft-08, section 7.16 “SUBSCRIBE_ERROR”).
TrackStatusCode
TRACK_STATUS Status Code values (draft-08, Section 7.24).