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§
- Announce
Error Code - ANNOUNCE_ERROR codes (draft-08, section 7.10 “ANNOUNCE_ERROR”).
- Fetch
Error Code - FETCH_ERROR codes (draft-08, section 7.18 “FETCH_ERROR”).
- Session
Error Code - Session termination codes (draft-08, section 3.5 “Termination”).
- Subscribe
Announces Error Code - SUBSCRIBE_ANNOUNCES_ERROR codes (draft-08, section 7.26 “SUBSCRIBE_ANNOUNCES_ERROR”).
- Subscribe
Done Status Code - SUBSCRIBE_DONE status codes (draft-08, section 7.19 “SUBSCRIBE_DONE”).
- Subscribe
Error Code - SUBSCRIBE_ERROR codes (draft-08, section 7.16 “SUBSCRIBE_ERROR”).
- Track
Status Code - TRACK_STATUS Status Code values (draft-08, Section 7.24).