• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 //
3 // Copyright 2015 gRPC authors.
4 //
5 // Licensed under the Apache License, Version 2.0 (the "License");
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17 //
18 
19 #ifndef GRPC_SRC_CORE_LIB_TRANSPORT_HTTP2_ERRORS_H
20 #define GRPC_SRC_CORE_LIB_TRANSPORT_HTTP2_ERRORS_H
21 
22 // error codes for RST_STREAM from http2 draft 14 section 7
23 typedef enum {
24   GRPC_HTTP2_NO_ERROR = 0x0,
25   GRPC_HTTP2_PROTOCOL_ERROR = 0x1,
26   GRPC_HTTP2_INTERNAL_ERROR = 0x2,
27   GRPC_HTTP2_FLOW_CONTROL_ERROR = 0x3,
28   GRPC_HTTP2_SETTINGS_TIMEOUT = 0x4,
29   GRPC_HTTP2_STREAM_CLOSED = 0x5,
30   GRPC_HTTP2_FRAME_SIZE_ERROR = 0x6,
31   GRPC_HTTP2_REFUSED_STREAM = 0x7,
32   GRPC_HTTP2_CANCEL = 0x8,
33   GRPC_HTTP2_COMPRESSION_ERROR = 0x9,
34   GRPC_HTTP2_CONNECT_ERROR = 0xa,
35   GRPC_HTTP2_ENHANCE_YOUR_CALM = 0xb,
36   GRPC_HTTP2_INADEQUATE_SECURITY = 0xc,
37   // force use of a default clause
38   GRPC_HTTP2__ERROR_DO_NOT_USE = -1
39 } grpc_http2_error_code;
40 
41 #endif  // GRPC_SRC_CORE_LIB_TRANSPORT_HTTP2_ERRORS_H
42