Skip to main content

ErrorInfo

Machine-readable error identification (per AIP-193, every error must include this).

Usage profiles​

UsageFields and validation
In requestsView fields
In responsesView fields
In webhook payloadsView fields

In requests​

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
reasonstringOptionalStable machine-readable reason string (e.g., "MODEL_NOT_FOUND", "RATE_LIMITED", "MODERATION_FLAGGED"). Unique within the domain. Clients may switch on this field.
domainstringOptionalMachine-readable namespace identifying the origin of the error.
metadataMap from string to stringOptionalArbitrary key-value metadata. If the message field mentions a specific value (model name, field path, etc.), it MUST also appear here.

In responses​

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
reasonstringOptionalStable machine-readable reason string (e.g., "MODEL_NOT_FOUND", "RATE_LIMITED", "MODERATION_FLAGGED"). Unique within the domain. Clients may switch on this field.
domainstringOptionalMachine-readable namespace identifying the origin of the error.
metadataMap from string to stringOptionalArbitrary key-value metadata. If the message field mentions a specific value (model name, field path, etc.), it MUST also appear here.

In webhook payloads​

Webhook JSON uses protobuf field names (snake_case).

FieldTypePresenceMeaning
reasonstringOptionalStable machine-readable reason string (e.g., "MODEL_NOT_FOUND", "RATE_LIMITED", "MODERATION_FLAGGED"). Unique within the domain. Clients may switch on this field.
domainstringOptionalMachine-readable namespace identifying the origin of the error.
metadataMap from string to stringOptionalArbitrary key-value metadata. If the message field mentions a specific value (model name, field path, etc.), it MUST also appear here.

Where used​

ReferenceRelationship
Submit client-side tool execution resultsPOST /api/v1/llm/submit-client-tool-results
Submit client-side tool results and wait for the next segmentPOST /api/v1/llm/submit-client-tool-results-sync
Send a message and wait for the resultPOST /api/v1/llm/send-message-sync
llm.generation_completedWebhook JSON uses protobuf field names (snake_case).
ErrorDetailsNested in model
ErrorDetailsNested in model
ErrorDetailsNested in model

Download the public reference contract.

Document: DOC-API-MODEL-error-info.