Glossary: Building with LLMs Basics
APIStatusError
Also written: BadRequestError, AuthenticationError, NotFoundError, RateLimitError, InternalServerError, OverloadedError
An SDK exception raised when the API answers with an error status. It carries `status_code`, `request_id` and the raw `response`, and has subclasses named for specific statuses such as `RateLimitError` (429).