BerriAI/litellm · error · RateLimitError
AzureException RateLimitError
Error message
AzureException RateLimitError - {message} What it means
Azure-specific status mapping: an upstream Azure exception with HTTP 408 is re-raised as Timeout, indicating Azure acknowledged the request but it exceeded the request timeout.
Solutions
- Retry with exponential backoff; the Azure deployment is rate-limited.
- Raise TPM/RPM quotas on the Azure deployment or spread load across deployments.
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at litellm/litellm_core_utils/exception_mapping_utils.py:2019 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/826b13abfc88c45d.
Report an issue: GitHub.
Appendix: source
Thrown at litellm/litellm_core_utils/exception_mapping_utils.py:2019
response=getattr(original_exception, "response", None),
)
elif original_exception.status_code == 408:
raise Timeout(
message=f"AzureException Timeout - {message}",
model=model,
litellm_debug_info=extra_information,
llm_provider="azure",
)
elif original_exception.status_code == 422:
raise BadRequestError(
message=f"AzureException BadRequestError - {message}",
model=model,
llm_provider="azure",
litellm_debug_info=extra_information,
response=getattr(original_exception, "response", None),
)
elif original_exception.status_code == 429:
raise RateLimitError(
message=f"AzureException RateLimitError - {message}",
model=model,
llm_provider="azure",
litellm_debug_info=extra_information,
response=getattr(original_exception, "response", None),
)
elif original_exception.status_code == 502:
raise BadGatewayError(
message=f"AzureException BadGatewayError - {message}",
model=model,
llm_provider="azure",
litellm_debug_info=extra_information,
response=getattr(original_exception, "response", None),
)
elif original_exception.status_code == 503:
raise ServiceUnavailableError(
message=f"AzureException ServiceUnavailableError - {message}",
model=model,View on GitHub (pinned to 77b7c6c40c)