Connect represents categories of errors as codes, and each code maps to a specific HTTP status code. The codes and their semantics were chosen to match gRPC. Only the codes below are valid — there are no user-defined codes.

See the specification at https://connectrpc.com/docs/protocol#error-codes for details.

Enumeration Members

Aborted: 10

Operation aborted.

AlreadyExists: 6

Entity already exists.

Canceled: 1

Canceled, usually be the user

DataLoss: 15

Unrecoverable data loss or corruption.

DeadlineExceeded: 4

Operation expired, may or may not have completed.

FailedPrecondition: 9

Argument invalid in current system state.

Internal: 13

Internal error, reserved for "serious errors".

InvalidArgument: 3

Argument invalid regardless of system state

NotFound: 5

Entity not found.

OutOfRange: 11

Out of bounds, use instead of FailedPrecondition.

PermissionDenied: 7

Operation not authorized.

ResourceExhausted: 8

Quota exhausted.

Unauthenticated: 16

Request isn't authenticated.

Unavailable: 14

Unavailable, client should back off and retry.

Unimplemented: 12

Operation not implemented or disabled.

Unknown: 2

Unknown error

Generated using TypeDoc