Fix subprotocol response code from 404 to 401

Fixed response code when subprotocol negotiation failed.