Allow errors from the API to be returned

I think we want errors from the API to be returned regardless of deploying to dev or production. Without this, figuring out what went wrong is quite a hassle and requires a lot of manual intervention.