grpcpp/impl/codegen/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 // IWYU pragma: private, include <grpcpp/support/status.h>
23 
24 namespace grpc {
25 
26 enum StatusCode {
28  OK = 0,
29 
31  CANCELLED = 1,
32 
37  UNKNOWN = 2,
38 
44 
51 
53  NOT_FOUND = 5,
54 
58 
65 
69 
73 
93 
99  ABORTED = 10,
100 
115 
118 
121  INTERNAL = 13,
122 
135 
137  DATA_LOSS = 15,
138 
141 };
142 
143 } // namespace grpc
144 
145 #endif // GRPCPP_IMPL_CODEGEN_STATUS_CODE_ENUM_H
grpc::UNAVAILABLE
@ UNAVAILABLE
Definition: grpcpp/impl/codegen/status_code_enum.h:134
grpc
Definition: grpcpp/alarm.h:33
grpc::PERMISSION_DENIED
@ PERMISSION_DENIED
Definition: grpcpp/impl/codegen/status_code_enum.h:64
grpc::ALREADY_EXISTS
@ ALREADY_EXISTS
Definition: grpcpp/impl/codegen/status_code_enum.h:57
grpc::DATA_LOSS
@ DATA_LOSS
Unrecoverable data loss or corruption.
Definition: grpcpp/impl/codegen/status_code_enum.h:137
grpc::FAILED_PRECONDITION
@ FAILED_PRECONDITION
Definition: grpcpp/impl/codegen/status_code_enum.h:92
grpc::DO_NOT_USE
@ DO_NOT_USE
Force users to include a default branch:
Definition: grpcpp/impl/codegen/status_code_enum.h:140
grpc.StatusCode
Definition: src/python/grpcio/grpc/__init__.py:232
grpc::OK
@ OK
Not an error; returned on success.
Definition: grpcpp/impl/codegen/status_code_enum.h:28
grpc::ABORTED
@ ABORTED
Definition: grpcpp/impl/codegen/status_code_enum.h:99
grpc::DEADLINE_EXCEEDED
@ DEADLINE_EXCEEDED
Definition: grpcpp/impl/codegen/status_code_enum.h:50
grpc::UNIMPLEMENTED
@ UNIMPLEMENTED
Operation is not implemented or not supported/enabled in this service.
Definition: grpcpp/impl/codegen/status_code_enum.h:117
grpc::NOT_FOUND
@ NOT_FOUND
Some requested entity (e.g., file or directory) was not found.
Definition: grpcpp/impl/codegen/status_code_enum.h:53
grpc::CANCELLED
@ CANCELLED
The operation was cancelled (typically by the caller).
Definition: grpcpp/impl/codegen/status_code_enum.h:31
grpc::OUT_OF_RANGE
@ OUT_OF_RANGE
Definition: grpcpp/impl/codegen/status_code_enum.h:114
grpc::INVALID_ARGUMENT
@ INVALID_ARGUMENT
Definition: grpcpp/impl/codegen/status_code_enum.h:43
grpc::UNKNOWN
@ UNKNOWN
Definition: grpcpp/impl/codegen/status_code_enum.h:37
grpc::RESOURCE_EXHAUSTED
@ RESOURCE_EXHAUSTED
Definition: grpcpp/impl/codegen/status_code_enum.h:72
grpc::UNAUTHENTICATED
@ UNAUTHENTICATED
Definition: grpcpp/impl/codegen/status_code_enum.h:68
grpc::INTERNAL
@ INTERNAL
Definition: grpcpp/impl/codegen/status_code_enum.h:121


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:22