Variant

kv-error

A value indicating the status of a KV store operation.

variant kv-error {
  bad-request,
  precondition-failed,
  payload-too-large,
  internal-error,
  too-many-requests,
  generic-error,
  extra(extra-kv-error),
}

Cases

CasePayloadDescription
bad-request—

KV store cannot or will not process the request due to something that is perceived to be a client error.

This will map to the api's 400 codes.

precondition-failed—

KV store cannot fulfill the request, as defined by the client's prerequisites, for example if-generation-match.

This will map to the api's 412 codes.

payload-too-large—

The size limit for a KV store key was exceeded.

This will map to the api's 413 codes.

internal-error—

The system encountered an unexpected internal error.

This will map to all remaining http error codes.

too-many-requests—

Too many requests have been made to the KV store.

This will map to the api's 429 codes.

generic-error—

Generic error value.

This means that some unexpected error occurred.

extraextra-kv-error

Additional error information may be added in the future via this resource type.