Current section
Files
Jump to
Current section
Files
lib/generated/google/rpc/code.pb.ex
defmodule Google.Rpc.Code do
@moduledoc """
The canonical error codes for gRPC APIs.
Sometimes multiple error codes may apply. Services should return
the most specific error code that applies. For example, prefer
`OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply.
Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`.
"""
use Protobuf, enum: true, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
field :OK, 0
field :CANCELLED, 1
field :UNKNOWN, 2
field :INVALID_ARGUMENT, 3
field :DEADLINE_EXCEEDED, 4
field :NOT_FOUND, 5
field :ALREADY_EXISTS, 6
field :PERMISSION_DENIED, 7
field :UNAUTHENTICATED, 16
field :RESOURCE_EXHAUSTED, 8
field :FAILED_PRECONDITION, 9
field :ABORTED, 10
field :OUT_OF_RANGE, 11
field :UNIMPLEMENTED, 12
field :INTERNAL, 13
field :UNAVAILABLE, 14
field :DATA_LOSS, 15
end