I am working on my newsletter project using Mailchimp API, it works but I can’t redirect to a failure page if the status code is not 200, the browser says localhost refused to connect meanwhile success page redirection works great. here’s my code: Answer First of all using async with express is tricky, if anything in your async function throws