httpResponse.redirect is not a function