Call raise_for_status on the response object inside sendwithus's batch
api execute() method before trying to return a json response.