pub enum ErrorCode {
InvalidSetup,
UnsupportedSetup,
RejectSetup,
RejectResume,
ConnectionError,
ConnectionClose,
ApplicationError,
Rejected,
Canceled,
Invalid,
Other(u32),
}
Expand description
Valid error codes contained in Error
frames.
Variants§
InvalidSetup
The Setup frame is invalid for the server (it could be that the client is too recent for the old server). Stream ID MUST be 0.
UnsupportedSetup
Some (or all) of the parameters specified by the client are unsupported by the server. Stream ID MUST be 0.
RejectSetup
The server rejected the setup, it can specify the reason in the payload. Stream ID MUST be 0.
RejectResume
The server rejected the resume, it can specify the reason in the payload. Stream ID MUST be 0.
ConnectionError
The connection is being terminated. Stream ID MUST be 0. Sender or Receiver of this frame MAY close the connection immediately without waiting for outstanding streams to terminate.
ConnectionClose
The connection is being terminated. Stream ID MUST be 0. Sender or Receiver of this frame MUST wait for outstanding streams to terminate before closing the connection. New requests MAY not be accepted.
ApplicationError
Application layer logic generating a Reactive Streams onError event. Stream ID MUST be > 0.
Rejected
Despite being a valid request, the Responder decided to reject it. The Responder guarantees that it didn’t process the request. The reason for the rejection is explained in the Error Data section. Stream ID MUST be > 0.
Canceled
The Responder canceled the request but may have started processing it (similar to REJECTED but doesn’t guarantee lack of side-effects). Stream ID MUST be > 0.
Invalid
The request is invalid. Stream ID MUST be > 0.
Other(u32)
Reserved for Extension Use.