Budget exceeded errors
When a request runs into a budget that has run out, LiteLLM rejects it before it calls the provider. The error has type budget_exceeded, returns HTTP 422 by default, and its message names the scope that ran out with its current spend and cap. Nothing reaches the provider, so the refusal costs nothing.
litellm_settings.budget_exceeded_status_code changes the status, for example to 429 for clients built against older releases. A few budgets fail differently. Agent session budgets return a 429 rate limit error, tag budgets declared in config.yaml fail as a routing error, and a per-model budget with budget fallbacks reroutes the request instead of failing it.
When to use it
Read this page when you write client code against the proxy. A budget refusal will not succeed on retry until the budget resets or someone raises it, so a client should stop, surface the message, and point the user at whoever owns the budget, where a provider 5xx or rate limit is worth retrying. Dashboards and alerts can split budget refusals from other failures on error.type.
Change the status code only when existing clients depend on it, such as code written against releases that returned 429. To keep an over-budget key running at reduced speed instead of rejecting it, use throttling. To reroute a capped model instead, use budget fallbacks.