Enum StatusCode (2.14.0)

Well-known status codes with grpc::StatusCode-compatible values.

The semantics of these values are documented in: https://grpc.io/grpc/cpp/classgrpc_1_1_status.html

Constants

Name Description
kOk

Not an error; returned on success.

kCancelled

kCancelled (gRPC code CANCELLED) indicates the operation was cancelled, typically by the caller.

kUnknown

kUnknown (gRPC code UNKNOWN) indicates an unknown error occurred.

kInvalidArgument

kInvalidArgument (gRPC code INVALID_ARGUMENT) indicates the caller specified an invalid argument, such as a malformed filename.

kDeadlineExceeded

kDeadlineExceeded (gRPC code DEADLINE_EXCEEDED) indicates a deadline expired before the operation could complete.

kNotFound

kNotFound (gRPC code NOT_FOUND) indicates some requested entity (such as a file or directory) was not found.

kAlreadyExists

kAlreadyExists (gRPC code ALREADY_EXISTS) indicates that the entity a caller attempted to create (such as a file or directory) is already present.

kPermissionDenied

kPermissionDenied (gRPC code PERMISSION_DENIED) indicates that the caller does not have permission to execute the specified operation.

kResourceExhausted

kResourceExhausted (gRPC code RESOURCE_EXHAUSTED) indicates some resource has been exhausted.

kFailedPrecondition

kFailedPrecondition (gRPC code FAILED_PRECONDITION) indicates that the operation was rejected because the system is not in a state required for the operation's execution.

kAborted

kAborted (gRPC code ABORTED) indicates the operation was aborted.

kOutOfRange

kOutOfRange (gRPC code OUT_OF_RANGE) indicates the operation was attempted past the valid range, such as seeking or reading past an end-of-file.

kUnimplemented

kUnimplemented (gRPC code UNIMPLEMENTED) indicates the operation is not implemented or supported in this service.

kInternal

kInternal (gRPC code INTERNAL) indicates an internal error has occurred and some invariants expected by the underlying system have not been satisfied.

kUnavailable

kUnavailable (gRPC code UNAVAILABLE) indicates the service is currently unavailable and that this is most likely a transient condition.

kDataLoss

kDataLoss (gRPC code DATA_LOSS) indicates that unrecoverable data loss or corruption has occurred.

kUnauthenticated

kUnauthenticated (gRPC code UNAUTHENTICATED) indicates that the request does not have valid authentication credentials for the operation.