<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_errors(self):
 """ Gets errors from HTTP response """

        errors = self.json.get('data').get('failures')
        if errors:
            logger.error(errors)
        return errors