Spaces:
Paused
Paused
Download litellm/proxy/client/exceptions.py from DesertWolf/test3: direct link, hf CLI and curl.
- Browser
- Download file 615 Bytes
-
https://huggingface.co/spaces/DesertWolf/test3/resolve/main/litellm/proxy/client/exceptions.py
- Command line
-
hf download hf://spaces/DesertWolf/test3/litellm/proxy/client/exceptions.py
-
curl -L -o exceptions.py https://huggingface.co/spaces/DesertWolf/test3/resolve/main/litellm/proxy/client/exceptions.py
615 Bytes
| import requests | |
| class UnauthorizedError(Exception): | |
| """Exception raised when the API returns a 401 Unauthorized response.""" | |
| def __init__(self, orig_exception: requests.exceptions.HTTPError | str): | |
| self.orig_exception = orig_exception | |
| super().__init__(str(orig_exception)) | |
| class NotFoundError(Exception): | |
| """Exception raised when the API returns a 404 Not Found response or indicates a resource was not found.""" | |
| def __init__(self, orig_exception: requests.exceptions.HTTPError | str): | |
| self.orig_exception = orig_exception | |
| super().__init__(str(orig_exception)) | |