Skip to main content

Module error_codes

Module error_codes 

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

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§

AnnounceErrorCode
ANNOUNCE_ERROR codes (draft-13 Section 8.25).
FetchErrorCode
FETCH_ERROR codes (draft-13 Section 8.18).
PublishErrorCode
PUBLISH_ERROR codes (draft-13 Section 8.15).
SessionErrorCode
Session termination codes (draft-13 Section 3.4, Termination).
StreamResetErrorCode
Data stream reset codes (draft-13 Section 9.4.3, Closing Subgroup Streams).
SubscribeDoneStatusCode
SUBSCRIBE_DONE status codes (draft-13 Section 8.12).
SubscribeErrorCode
SUBSCRIBE_ERROR codes (draft-13 Section 8.9).
SubscribeNamespaceErrorCode
SUBSCRIBE_NAMESPACE_ERROR codes (draft-13 Section 8.30).