(self, message, status_code=502)
| 38 | class BackendAPIError(HandlerError): |
| 39 | """Error originating from the downstream AI API.""" |
| 40 | def __init__(self, message, status_code=502): # Bad Gateway by default |
| 41 | super().__init__(message, status_code) |
| 42 | |
| 43 | |
| 44 | class BaseAPIHandler: |