check the error count before trying to process the response data