Raised when a handshake response rejects the WebSocket upgrade.
| 243 | |
| 244 | |
| 245 | class InvalidStatus(InvalidHandshake): |
| 246 | """ |
| 247 | Raised when a handshake response rejects the WebSocket upgrade. |
| 248 | |
| 249 | """ |
| 250 | |
| 251 | def __init__(self, response: http11.Response) -> None: |
| 252 | self.response = response |
| 253 | |
| 254 | def __str__(self) -> str: |
| 255 | return ( |
| 256 | f"server rejected WebSocket connection: HTTP {self.response.status_code:d}" |
| 257 | ) |
| 258 | |
| 259 | |
| 260 | class InvalidHeader(InvalidHandshake): |
no outgoing calls
searching dependent graphs…