add throw exception when response error