Skip to main content

Module codes

Module codes 

Source
Expand description

Refusal and ending codes. The provider sends them as the code of an error body; see Refusal.

Constants§

CANCELLED
Subscription ending after the caller’s own Cancel. The provider may send it as the last frame, and the daemon may drop it because the caller asked to stop. A reader treats it, after its own Cancel, as the normal end.
CURSOR_EXPIRED
Read: after is older than the feed holds. The detail carries through, the newest cursor.
DRAINING
Subscribe: the provider is stopping.
INVALID_REQUEST
Read: limit is 0, or after is not a cursor the provider issued. Read and subscribe: the request names harness without session, or session without harness.
LAGGED
Subscription ending: the subscriber fell behind its queue bound. The detail carries through, the last notified cursor.
MALFORMED
The request did not decode, or it carries an unknown member.
NOT_PERMITTED
The caller is not an admitted reader (a local same-user app, or the operator’s phone relayed by the federation module).
RANGE_TOO_LARGE
Read: limit is above crate::MAX_READ_LIMIT.
READ_REFUSALS
Every code that refuses a read.
SUBSCRIBE_ENDINGS
Every code that ends an open subscription with an error.
SUBSCRIBE_REFUSALS
Every code that refuses opening a subscription.
SUBSCRIPTION_CAPACITY
Subscribe: more than 16 subscriptions would be open.