MCPcopy Index your code
hub / github.com/python-websockets/websockets / InvalidProxyStatus

Class InvalidProxyStatus

src/websockets/exceptions.py:225–235  ·  view source on GitHub ↗

Raised when an HTTP proxy rejects the connection.

Source from the content-addressed store, hash-verified

223
224
225class 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
238class InvalidMessage(InvalidHandshake):

Callers 3

run_parserMethod · 0.85
read_connect_responseFunction · 0.85
test_strMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_strMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…