Add more error code and protocol version