Allow any http status in the redirect function