1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
create_enum! {
/// HTTP/2 error codes.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum Http2ErrorCode<u32> {
/// The associated condition is not a result of an error.
NoError = (0),
/// The endpoint detected an unspecific protocol error.
ProtocolError = (1),
/// The endpoint encountered an unexpected internal error.
InternalError = (2),
/// The endpoint detected that its peer violated the flow-control protocol.
FlowControlError = (3),
/// The endpoint sent a SETTINGS frame but did not receive a response in
/// a timely manner.
SettingsTimeout = (4),
/// The endpoint received a frame after a stream was half-closed.
StreamClosed = (5),
/// The endpoint received a frame with an invalid size.
FrameSizeError = (6),
/// The endpoint refused the stream prior to performing any application
/// processing.
RefusedStream = (7),
/// Used by the endpoint to indicate that the stream is no longer needed.
Cancel = (8),
/// The endpoint is unable to maintain the header compression context for
/// the connection.
CompressionError = (9),
/// The connection established in response to a CONNECT request was reset
/// or abnormally closed.
ConnectError = (10),
/// The endpoint detected that its peer is exhibiting a behavior that might
/// be generating excessive load.
EnhanceYourCalm = (11),
/// The underlying transport has properties that do not meet minimum
/// security requirements.
InadequateSecurity = (12),
/// The endpoint requires HTTP/1.1 instead of HTTP/2.
Http11Requires = (13),
}
}