---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/anthropic_messages/error_translation/variables/CONTEXT_OVERFLOW_PHRASE.md
description: Body-text marker identifying an Anthropic context-overflow rejection.
---

# Variable: CONTEXT\_OVERFLOW\_PHRASE

```ts
const CONTEXT_OVERFLOW_PHRASE: "prompt is too long" = "prompt is too long";
```

Defined in: [src/batteries/llm/anthropic\_messages/error\_translation.ts:30](https://github.com/NHTIO/ADK/blob/v1.20260803.0/src/src/batteries/llm/anthropic_messages/error_translation.ts#L30)

Body-text marker identifying an Anthropic context-overflow rejection.

## Remarks

Context overflow arrives as a 400 `BadRequestError` and is detected from body TEXT, not status —
the status alone cannot distinguish it from any other bad request.
