Fix the original issue mentioned in issue #37

The response status should be set correctly when upgrading to Websocket or TCP.