Module close_code
Expand description
Session close codes: the WebTransport session close, the WebSocket close frame.
Constantsยง
- FORBIDDEN
- A 403 refusal: the provider forbade the caller, or a
re-authentication named a different principal. The
{id: 0, err}frame before the close says which. - PROTOCOL
- The control stream broke protocol: first frame not
Init, a frame that does not decode, or a frame over the size limit. - SERVER_
ERROR - The
AuthProvidercould not decide (a 5xx: its key server is down). Not a verdict on the credentials: retry later, do not sign out. - TOO_
MANY_ SESSIONS - Too many open sessions for this principal.
- UNAUTHENTICATED
- Authentication was refused (401), or no
Initarrived in time. A refusal is preceded by an{id: 0, err}frame; a timeout is not.