Raised when an HTTP proxy rejects the connection.
| 223 | |
| 224 | |
| 225 | class InvalidProxyStatus(ProxyError): |
| 226 | """ |
| 227 | Raised when an HTTP proxy rejects the connection. |
| 228 | |
| 229 | """ |
| 230 | |
| 231 | def __init__(self, response: http11.Response) -> None: |
| 232 | self.response = response |
| 233 | |
| 234 | def __str__(self) -> str: |
| 235 | return f"proxy rejected connection: HTTP {self.response.status_code:d}" |
| 236 | |
| 237 | |
| 238 | class InvalidMessage(InvalidHandshake): |
no outgoing calls
searching dependent graphs…