﻿# gRPC quota errors: QuotaFailure, RetryInfo and the affected resource

Inspect structured gRPC error details to distinguish quota subjects, metrics and retry guidance, while checking support in the client and proxy path.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/guide-grpc-quota-failure-rich-details/
Language: en

## The top-level status is a broad category

A resource-exhaustion failure can describe different limits in an AI infrastructure API. A project allocation quota, a regional resource limit and a transient processing constraint need different recovery decisions. The status category alone cannot identify that distinction.

The gRPC error guide describes a richer protobuf error model that can carry typed detail messages. It supplements the standard status rather than changing every failure into one universal retry case. Support must be checked for the actual language library and intermediary path.

## QuotaFailure describes the violated constraint

Google's standard detail definition includes QuotaFailure violations with a subject and description, and fields for service, metric, limit identity and dimensions. These can explain which quota was involved, rather than forcing a consumer to parse an English sentence.

A proposed GPU allocator relates those fields to its requested resource. If the affected dimension is a region or machine family, coordination across unrelated requests should not be guessed from the API key alone. Missing detail remains missing evidence, not proof that the limit applies globally.

## RetryInfo answers a different question

RetryInfo provides retry guidance, while QuotaFailure describes a failed quota check. They are separate message types. A consumer should not manufacture a delay merely because it recognized a quota-shaped description.

A permanent allocation ceiling may require a changed request or an administrative decision. A temporary constraint may become eligible later. Even a supplied retry delay does not authorize repeating a non-idempotent operation without considering its application contract and the outcome of any earlier attempt.

## Typed details require compatible decoding

Google's error guidance packages detail messages within the structured status. A client needs support for identifying and decoding the relevant protobuf types. A generic text-only wrapper can discard those details while retaining a readable message.

Check whether the same information survives the gateway and the consumer's exception abstraction. Record an unknown detail type as such; silently treating it as an empty quota description can turn a compatibility problem into a misleading operational diagnosis.

## Report the scope without exposing unnecessary context

A useful diagnostic distinguishes status, machine error identity, quota subject and optional retry advice. Google guidance uses ErrorInfo for stable reason and domain identification, separate from localized or changing explanation text.

This is a proposed interpretation model for documented error fields. It helps an infrastructure client choose a bounded recovery path while avoiding unsupported assumptions about account limits, available GPU capacity or guaranteed success after a particular waiting period.

## Primary references

[gRPC richer error handling](https://grpc.io/docs/guides/error/).

[Google standard error detail definitions](https://raw.githubusercontent.com/googleapis/googleapis/master/google/rpc/error_details.proto).

[Google structured API error guidance](https://google.aip.dev/193).

Related explanations: [API contract changes](/journal/provider-api-contract-deprecation-migration/); [Operation identity](/journal/provider-post-retry-idempotency-ledger/).
