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

Class InvalidStatus

src/websockets/exceptions.py:245–257  ·  view source on GitHub ↗

Raised when a handshake response rejects the WebSocket upgrade.

Source from the content-addressed store, hash-verified

243
244
245class 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
260class InvalidHeader(InvalidHandshake):

Callers 2

process_responseMethod · 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…