fixed the redirection status code