ErrorResponse envelope:
{"code": "INTERNAL_SERVER_ERROR"}.
Status Codes
| Status | Meaning |
|---|---|
401 or 403 | The X-API-Key header is missing or invalid. |
404 | The requested endpoint is unavailable. |
413 | The raw request body is larger than 65,536 bytes. |
422 | Request validation failed. |
500 | The server hit an unexpected error. |
503 | A required runtime service is unavailable. |
Common Validation Failures
| Code or message | Cause |
|---|---|
QUERY_EMPTY | The query is empty. |
QUERY_TOO_LONG | The query exceeds 4,000 characters. |
REQUEST_TOO_LARGE | The raw JSON body exceeds the request size limit. |
FILTER_FIELD_UNKNOWN | A metadata filter names an unsupported field. |
FILTER_OPERATOR_UNSUPPORTED | A metadata-filter field does not support the requested operator. |
FILTER_VALUE_TYPE_INVALID | A metadata filter value has the wrong type for the field or operator. |
FILTER_VALUE_UNKNOWN | A categorical value cannot be canonicalized to an allowed value. |
FILTER_EXPRESSION_UNSUPPORTED | The request used expression-style metadata filters instead of the supported metadata filter format. |
extra_forbidden for filters | Use metadata_filters; the legacy filters request key is rejected. |
summary.warnings includes LOW_EVIDENCE, and retrieval-derived sections such as metadata_distribution are empty when requested. If answer generation is requested, answer.text is set to No data found.