Prevent redirect and render a response