Redirect user to an error page

The user should be redirected to an error page when the api throws an error
Agreeing to merge as-is, I'll investigate this to see why this wasn't working initially.