Skip to main content

Module error_codes

Module error_codes 

Source
Expand description

Error and status code registries (Section 13.3). Error and status code registries defined by draft-15.

Each of the four registries in Section 13.3 of the draft (“Error Codes”) is transcribed here as one enum. The IANA tables list only names, codes and a pointer to the defining section; the per-variant prose below comes from those defining sections (3.4, 9.8, 9.15 and 10.4.3).

from_u64 returns None for any code the draft does not define. Peers are free to send codes from a newer draft or from a private range, so an unknown code is a normal decode outcome and never an error on its own.

Enums§

DataStreamResetErrorCode
Data Stream Reset Error Codes (draft-15 Section 13.3.4, defined in Section 10.4.3).
PublishDoneStatusCode
PUBLISH_DONE Codes (draft-15 Section 13.3.3, defined in Section 9.15).
RequestErrorCode
REQUEST_ERROR Codes (draft-15 Section 13.3.2, defined in Section 9.8).
SessionErrorCode
Session Termination Error Codes (draft-15 Section 13.3.1, defined in Section 3.4).