Constants - grpc

  • OK int 0
  • The gRPC error status code: 0 OK.
  • CANCELED int 1
  • The gRPC error status code: 1 Canceled.
  • UNKNOWN int 2
  • The gRPC error status code: 2 Unknown.
  • INVALID_ARGUMENT int 3
  • The gRPC error status code: 3 Invalid Argument.
  • DEADLINE_EXCEEDED int 4
  • The gRPC error status code: 4 Deadline Exceeded.
  • NOT_FOUND int 5
  • The gRPC error status code: 5 Not Found.
  • ALREADY_EXISTS int 6
  • The gRPC error status code: 6 Already Exists.
  • PERMISSION_DENIED int 7
  • The gRPC error status code: 7 Permission Denied.
  • RESOURCE_EXHAUSTED int 8
  • The gRPC error status code: 8 Resource Exhausted.
  • FAILED_PRECONDITION int 9
  • The gRPC error status code: 9 Failed Precondition.
  • ABORTED int 10
  • The gRPC error status code: 10 Aborted.
  • OUT_OF_RANGE int 11
  • The gRPC error status code: 11 Out of Range.
  • UNIMPLEMENTED int 12
  • The gRPC error status code: 12 Unimplemented.
  • INTERNAL int 13
  • The gRPC error status code: 13 Internal.
  • UNAVAILABLE int 14
  • The gRPC error status code: 14 Unavailable.
  • DATA_LOSS int 15
  • The gRPC error status code: 15 Data Loss.
  • UNAUTHENTICATED int 16
  • The gRPC error status code: 16 Unauthenticated.
  • COMPRESSION_AUTO string AUTO
  • When service behaves as a HTTP gateway inbound request/response accept-encoding option is set as the outbound request/response accept-encoding/content-encoding option.
  • COMPRESSION_ALWAYS string ALWAYS
  • Always set accept-encoding/content-encoding in outbound request/response.
  • COMPRESSION_NEVER string NEVER
  • Never set accept-encoding/content-encoding header in outbound request/response.
  • CANCELLED_ERROR string {ballerina/grpc}CancelledError
  • Represents the reason of the cancelled error.
  • UNKNOWN_ERROR string {ballerina/grpc}UnKnownError
  • Represents the reason of the unknown error.
  • INVALID_ARGUMENT_ERROR string {ballerina/grpc}InvalidArgumentError
  • Represents the reason of the invalid argument error.
  • DEADLINE_EXCEEDED_ERROR string {ballerina/grpc}DeadlineExceededError
  • Represents the reason of the deadline exceeded error.
  • NOT_FOUND_ERROR string {ballerina/grpc}NotFoundError
  • Represents the reason of the not found error.
  • ALREADY_EXISTS_ERROR string {ballerina/grpc}AleadyExistsError
  • Represents the reason of the already exists error.
  • PERMISSION_DENIED_ERROR string {ballerina/grpc}PermissionDeniedError
  • Represents the reason of the permission denied error.
  • UNAUTHENTICATED_ERROR string {ballerina/grpc}UnauthenticatedError
  • Represents the reason of the unauthenticated error.
  • RESOURCE_EXHAUSTED_ERROR string {ballerina/grpc}ResourceExhaustedError
  • Represents the reason of the resource exhausted error.
  • FAILED_PRECONDITION_ERROR string {ballerina/grpc}FailedPreconditionError
  • Represents the reason of the failed precondition error.
  • ABORTED_ERROR string {ballerina/grpc}AbortedError
  • Represents the reason of the aborted error.
  • OUT_OF_RANGE_ERROR string {ballerina/grpc}OutOfRangeError
  • Represents the reason of the out of range error.
  • UNIMPLEMENTED_ERROR string {ballerina/grpc}UnimplementedError
  • Represents the reason of the unimplemented error.
  • INTERNAL_ERROR string {ballerina/grpc}InternalError
  • Represents the reason of the internal error.
  • UNAVAILABLE_ERROR string {ballerina/grpc}UnavailableError
  • Represents the reason of the unavailable error.
  • DATA_LOSS_ERROR string {ballerina/grpc}DataLossError
  • Represents the reason of the data loss error.
  • ALL_RETRY_ATTEMPTS_FAILED string {ballerina/grpc}AllRetryAttemptsFailed
  • Represents the reason of all the retry attempts failed scenario.