The response had an error HTTP status of 4xx or 5xx. May be raised when calling `response.raise_for_status()`
| 256 | |
| 257 | |
| 258 | class HTTPStatusError(HTTPError): |
| 259 | """ |
| 260 | The response had an error HTTP status of 4xx or 5xx. |
| 261 | |
| 262 | May be raised when calling `response.raise_for_status()` |
| 263 | """ |
| 264 | |
| 265 | def __init__(self, message: str, *, request: Request, response: Response) -> None: |
| 266 | super().__init__(message) |
| 267 | self.request = request |
| 268 | self.response = response |
| 269 | |
| 270 | |
| 271 | class InvalidURL(Exception): |