GRPC C++  1.30.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
grpc::UNAVAILABLE
The service is currently unavailable.
Definition: status_code_enum.h:132
grpc
This header provides an object that reads bytes directly from a grpc::ByteBuffer, via the ZeroCopyInp...
Definition: alarm.h:24
grpc::PERMISSION_DENIED
The caller does not have permission to execute the specified operation.
Definition: status_code_enum.h:62
grpc::ALREADY_EXISTS
Some entity that we attempted to create (e.g., file or directory) already exists.
Definition: status_code_enum.h:55
grpc::DATA_LOSS
Unrecoverable data loss or corruption.
Definition: status_code_enum.h:135
grpc::FAILED_PRECONDITION
Operation was rejected because the system is not in a state required for the operation's execution.
Definition: status_code_enum.h:90
grpc::DO_NOT_USE
Force users to include a default branch:
Definition: status_code_enum.h:138
grpc::OK
Not an error; returned on success.
Definition: status_code_enum.h:26
grpc::StatusCode
StatusCode
Definition: status_code_enum.h:24
grpc::ABORTED
The operation was aborted, typically due to a concurrency issue like sequencer check failures,...
Definition: status_code_enum.h:97
grpc::DEADLINE_EXCEEDED
Deadline expired before operation could complete.
Definition: status_code_enum.h:48
grpc::UNIMPLEMENTED
Operation is not implemented or not supported/enabled in this service.
Definition: status_code_enum.h:115
grpc::NOT_FOUND
Some requested entity (e.g., file or directory) was not found.
Definition: status_code_enum.h:51
grpc::CANCELLED
The operation was cancelled (typically by the caller).
Definition: status_code_enum.h:29
grpc::OUT_OF_RANGE
Operation was attempted past the valid range.
Definition: status_code_enum.h:112
grpc::INVALID_ARGUMENT
Client specified an invalid argument.
Definition: status_code_enum.h:41
grpc::UNKNOWN
Unknown error.
Definition: status_code_enum.h:35
grpc::RESOURCE_EXHAUSTED
Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out ...
Definition: status_code_enum.h:70
grpc::UNAUTHENTICATED
The request does not have valid authentication credentials for the operation.
Definition: status_code_enum.h:66
grpc::INTERNAL
Internal errors.
Definition: status_code_enum.h:119