Accommodate error responses from the API