GRPC C++  1.26.0
status_code_enum.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2016 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 GRPCPP_IMPL_CODEGEN_STATUS_CODE_ENUM_H
20 #define GRPCPP_IMPL_CODEGEN_STATUS_CODE_ENUM_H
21 
22 namespace grpc {
23 
24 enum StatusCode {
26  OK = 0,
27 
29  CANCELLED = 1,
30 
35  UNKNOWN = 2,
36 
42 
49 
51  NOT_FOUND = 5,
52 
56 
63 
67 
71 
91 
97  ABORTED = 10,
98 
113 
116 
119  INTERNAL = 13,
120 
133 
135  DATA_LOSS = 15,
136 
139 };
140 
141 } // namespace grpc
142 
143 #endif // GRPCPP_IMPL_CODEGEN_STATUS_CODE_ENUM_H
The caller does not have permission to execute the specified operation.
Definition: status_code_enum.h:62
The service is currently unavailable.
Definition: status_code_enum.h:132
Some entity that we attempted to create (e.g., file or directory) already exists. ...
Definition: status_code_enum.h:55
Operation was rejected because the system is not in a state required for the operation's execution...
Definition: status_code_enum.h:90
Unrecoverable data loss or corruption.
Definition: status_code_enum.h:135
Not an error; returned on success.
Definition: status_code_enum.h:26
StatusCode
Definition: status_code_enum.h:24
Force users to include a default branch:
Definition: status_code_enum.h:138
This header provides an object that reads bytes directly from a grpc::ByteBuffer, via the ZeroCopyInp...
Definition: alarm.h:24
The operation was aborted, typically due to a concurrency issue like sequencer check failures...
Definition: status_code_enum.h:97
The operation was cancelled (typically by the caller).
Definition: status_code_enum.h:29
Deadline expired before operation could complete.
Definition: status_code_enum.h:48
Client specified an invalid argument.
Definition: status_code_enum.h:41
Operation is not implemented or not supported/enabled in this service.
Definition: status_code_enum.h:115
Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out ...
Definition: status_code_enum.h:70
Some requested entity (e.g., file or directory) was not found.
Definition: status_code_enum.h:51
Unknown error.
Definition: status_code_enum.h:35
Operation was attempted past the valid range.
Definition: status_code_enum.h:112
Internal errors.
Definition: status_code_enum.h:119
The request does not have valid authentication credentials for the operation.
Definition: status_code_enum.h:66