code: def errors(self):
          
          if self.ok():
              return {}
  
          errors = self.content
  
          if(not isinstance(errors, dict)):
              errors = {"error": errors}  # convert to dict for consistency
          elif('errors' in errors):
              errors = errors['errors']
  
          return errors
docs: :return error dict if no success: