Method
__init__
(self, message: str, *, response: httpx.Response, body: object | None)
Source from the content-addressed store, hash-verified
| 62 | request_id: str | None |
| 63 | |
| 64 | def __init__(self, message: str, *, response: httpx.Response, body: object | None) -> None: |
| 65 | super().__init__(message, response.request, body=body) |
| 66 | self.response = response |
| 67 | self.status_code = response.status_code |
| 68 | self.request_id = response.headers.get("request-id") |
| 69 | |
| 70 | |
| 71 | class APIConnectionError(APIError): |
Callers
nothing calls this directly
Tested by
no test coverage detected