Whenever the opening handshake ends with a code other than 101, an error is logged. ~While this behavior was already present in the legacy implementation (I believe), it's less than ideal.~ EDIT: it wasn't present. Probably it should be an info or a warning, except when the code is 5xx? This was raised in https://github.com/python-websockets/websockets/issues/1419#issuecomment-2381025668