---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/generation/openai/exceptions/variables/E_OPENAI_GENERATION_HTTP_ERROR.md
description: >-
  Thrown when the upstream `/v1/images/generations` or `/v1/images/edits`
  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\_OPENAI\_GENERATION\_HTTP\_ERROR

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

Defined in: [src/batteries/generation/openai/exceptions.ts:35](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/generation/openai/exceptions.ts#L35)

Thrown when the upstream `/v1/images/generations` or `/v1/images/edits` 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.
