Improved redirect helper so now he can get status code param