(docs) exception mapping - add more details

This commit is contained in:
ishaan-jaff 2023-12-19 19:22:51 +05:30
parent 84fde01461
commit dbcff752b3

View file

@ -1,13 +1,18 @@
# Exception Mapping # Exception Mapping
LiteLLM maps exceptions across all providers to their OpenAI counterparts. LiteLLM maps exceptions across all providers to their OpenAI counterparts.
- Rate Limit Errors
- Invalid Request Errors | Status Code | Error Type |
- Authentication Errors |-------------|--------------------------|
- Timeout Errors `openai.APITimeoutError` | 400 | BadRequestError |
- ServiceUnavailableError | 401 | AuthenticationError |
- APIError | 403 | PermissionDeniedError |
- APIConnectionError | 404 | NotFoundError |
| 422 | UnprocessableEntityError |
| 429 | RateLimitError |
| >=500 | InternalServerError |
| N/A | APIConnectionError |
Base case we return APIConnectionError Base case we return APIConnectionError