| 94 | |
| 95 | |
| 96 | class TemporaryError(Exception): |
| 97 | response: httpx.Response |
| 98 | retry_after: Optional[int] |
| 99 | |
| 100 | def __init__(self, response: httpx.Response): |
| 101 | self.response = response |
| 102 | self.retry_after = _parse_retry_after_header(response) |
| 103 | |
| 104 | |
| 105 | class PermanentError(Exception): |