GRPC C++  1.66.0
status_code_enum.h
Go to the documentation of this file.
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 GRPCPP_SUPPORT_STATUS_CODE_ENUM_H
20 #define GRPCPP_SUPPORT_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_SUPPORT_STATUS_CODE_ENUM_H
grpc::UNAVAILABLE
@ UNAVAILABLE
The service is currently unavailable.
Definition: status_code_enum.h:134
grpc
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm.h:33
grpc::PERMISSION_DENIED
@ PERMISSION_DENIED
The caller does not have permission to execute the specified operation.
Definition: status_code_enum.h:64
grpc::ALREADY_EXISTS
@ ALREADY_EXISTS
Some entity that we attempted to create (e.g., file or directory) already exists.
Definition: status_code_enum.h:57
grpc::DATA_LOSS
@ DATA_LOSS
Unrecoverable data loss or corruption.
Definition: status_code_enum.h:137
grpc::FAILED_PRECONDITION
@ FAILED_PRECONDITION
Operation was rejected because the system is not in a state required for the operation's execution.
Definition: status_code_enum.h:92
grpc::DO_NOT_USE
@ DO_NOT_USE
Force users to include a default branch:
Definition: status_code_enum.h:140
grpc::OK
@ OK
Not an error; returned on success.
Definition: status_code_enum.h:28
grpc::StatusCode
StatusCode
Definition: status_code_enum.h:26
grpc::ABORTED
@ ABORTED
The operation was aborted, typically due to a concurrency issue like sequencer check failures,...
Definition: status_code_enum.h:99
grpc::DEADLINE_EXCEEDED
@ DEADLINE_EXCEEDED
Deadline expired before operation could complete.
Definition: status_code_enum.h:50
grpc::UNIMPLEMENTED
@ UNIMPLEMENTED
Operation is not implemented or not supported/enabled in this service.
Definition: status_code_enum.h:117
grpc::NOT_FOUND
@ NOT_FOUND
Some requested entity (e.g., file or directory) was not found.
Definition: status_code_enum.h:53
grpc::CANCELLED
@ CANCELLED
The operation was cancelled (typically by the caller).
Definition: status_code_enum.h:31
grpc::OUT_OF_RANGE
@ OUT_OF_RANGE
Operation was attempted past the valid range.
Definition: status_code_enum.h:114
grpc::INVALID_ARGUMENT
@ INVALID_ARGUMENT
Client specified an invalid argument.
Definition: status_code_enum.h:43
grpc::UNKNOWN
@ UNKNOWN
Unknown error.
Definition: status_code_enum.h:37
grpc::RESOURCE_EXHAUSTED
@ 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:72
grpc::UNAUTHENTICATED
@ UNAUTHENTICATED
The request does not have valid authentication credentials for the operation.
Definition: status_code_enum.h:68
grpc::INTERNAL
@ INTERNAL
Internal errors.
Definition: status_code_enum.h:121