Fix for log message in issue 37

Set the status code for upgrade to Websocket and TCP scenarios.