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
  • Identifies cancelled error.

  • UNKNOWN_ERROR string {ballerina/grpc}UnKnownError
  • Identifies unknown error.

  • INVALID_ARGUMENT_ERROR string {ballerina/grpc}InvalidArgumentError
  • Identifies invalid argument error.

  • DEADLINE_EXCEEDED_ERROR string {ballerina/grpc}DeadlineExceededError
  • Identifies deadline exceeded error.

  • NOT_FOUND_ERROR string {ballerina/grpc}NotFoundError
  • Identifies not found error.

  • ALREADY_EXISTS_ERROR string {ballerina/grpc}AleadyExistsError
  • Identifies already exists error.

  • PERMISSION_DENIED_ERROR string {ballerina/grpc}PermissionDeniedError
  • Identifies permission denied error.

  • UNAUTHENTICATED_ERROR string {ballerina/grpc}UnauthenticatedError
  • Identifies unauthenticated error

  • RESOURCE_EXHAUSTED_ERROR string {ballerina/grpc}ResourceExhaustedError
  • Identifies resource exhausted error.

  • FAILED_PRECONDITION_ERROR string {ballerina/grpc}FailedPreconditionError
  • Identifies failed precondition error.

  • ABORTED_ERROR string {ballerina/grpc}AbortedError
  • Identifies aborted error.

  • OUT_OF_RANGE_ERROR string {ballerina/grpc}OutOfRangeError
  • Identifies out of range error.

  • UNIMPLEMENTED_ERROR string {ballerina/grpc}UnimplementedError
  • Identifies unimplemented error.

  • INTERNAL_ERROR string {ballerina/grpc}InternalError
  • Identifies internal error.

  • UNAVAILABLE_ERROR string {ballerina/grpc}UnavailableError
  • Identifies unavailable error.

  • DATA_LOSS_ERROR string {ballerina/grpc}DataLossError
  • Identifies data loss error.