use unexpected response exception to output the redirect response