Attempted to read or stream response content, but the request has been closed.
| 325 | |
| 326 | |
| 327 | class StreamClosed(StreamError): |
| 328 | """ |
| 329 | Attempted to read or stream response content, but the request has been |
| 330 | closed. |
| 331 | """ |
| 332 | |
| 333 | def __init__(self) -> None: |
| 334 | message = ( |
| 335 | "Attempted to read or stream content, but the stream has " "been closed." |
| 336 | ) |
| 337 | super().__init__(message) |
| 338 | |
| 339 | |
| 340 | class ResponseNotRead(StreamError): |