---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/generation/gemini/exceptions/variables/E_GEMINI_GENERATION_HTTP_ERROR.md
description: >-
  Thrown when the upstream `/models/{model}:generateContent` endpoint returns a
  non-2xx response (after retries are exhausted), or the transport throws.
  Non-fatal. Printf args: `[status, detail]` — `status` is `0` for a
  transport-level failure with no HTTP response.
---

# Variable: E\_GEMINI\_GENERATION\_HTTP\_ERROR

```ts
const E_GEMINI_GENERATION_HTTP_ERROR: CreatedException<[number, string]>;
```

Defined in: [src/batteries/generation/gemini/exceptions.ts:36](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/generation/gemini/exceptions.ts#L36)

Thrown when the upstream `/models/{model}:generateContent` endpoint returns a non-2xx response
(after retries are exhausted), or the transport throws. Non-fatal. Printf args:
`[status, detail]` — `status` is `0` for a transport-level failure with no HTTP response.
