assert if the response is a redirect