Skip to main content

Connect Error

Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation

codestring

The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

Possible values: [canceled, unknown, invalid_argument, deadline_exceeded, not_found, already_exists, permission_denied, resource_exhausted, failed_precondition, aborted, out_of_range, unimplemented, internal, unavailable, data_loss, unauthenticated]

messagestring

A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.

details object[]

A list of messages that carry the error details. There is no limit on the number of messages.

  • Array [
  • typestring

    A URL that acts as a globally unique identifier for the type of the serialized message. For example: type.googleapis.com/google.rpc.ErrorInfo. This is used to determine the schema of the data in the value field and is the discriminator for the debug field.

    valuestring<binary>

    The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the type field.

    debug object

    Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.

    type

    Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.

    Possible values: [Any]

    property name*any

    Detailed error information.

    property name*any

    Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details.

  • ]
  • property name*any

    Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation

    Connect Error
    {
    "code": "canceled",
    "message": "string",
    "details": [
    {
    "type": "string",
    "value": "string",
    "debug": {}
    }
    ]
    }