Expand description
Draft-11 error and status code registries.
Draft-11 predates the IANA registries introduced in draft-14: every code
point here is defined by an inline Code/Reason table in the body of the
document, and each table is scoped to one control message rather than to a
shared registry. The tables carry no symbolic ALLCAPS names, so each variant
name below is derived from the reason text and the doc comment repeats the
draft’s own wording verbatim, so the mapping stays checkable against the
document.
Every from_u64 returns None for a code this draft does not define. Peers
do send codes from other drafts and from private extensions, and a decoder
that panics on one is a decoder that dies on the wire.
Not every draft-11 code registry is written as a table. TrackStatusCode
below comes from a prose list in the body of section 8.18, and the object
status values of section 9.1.1.1 are likewise prose; those live in
super::types::ObjectStatus rather than here.
Enums§
- Announce
Error Code - ANNOUNCE_ERROR codes, from the table in draft-11 section 8.21.
- Fetch
Error Code - FETCH_ERROR codes, from the table in draft-11 section 8.15.
- Session
Error Code - Session termination codes, from the table in draft-11 section 3.4 (Termination). Carried in the session-level termination error code.
- Stream
Reset Error Code - Data stream reset codes, from the table in draft-11 section 9.4.3 (Closing Subgroup Streams). Carried in RESET_STREAM and RESET_STREAM_AT.
- Subscribe
Announces Error Code - SUBSCRIBE_ANNOUNCES_ERROR codes, from the table in draft-11 section 8.26.
- Subscribe
Done Status Code - SUBSCRIBE_DONE status codes, from the table in draft-11 section 8.12.
- Subscribe
Error Code - SUBSCRIBE_ERROR codes, from the table in draft-11 section 8.9.
- Track
Status Code - TRACK_STATUS status codes, carried in the Status Code field of the TRACK_STATUS message.