code: def check_errors(self, response, data):
          
          if "error_id" in data:
              error_id = data["error_id"]
              if error_id in self.error_ids:
                  raise self.error_ids[error_id](response)
          if "error_code" in data:
              error_code = data["error_code"]
              if error_code in self.error_codes:
                  raise self.error_codes[error_code](response)
          if "error_code" in data or "error_id" in data:
              raise AppNexusException(response)
docs: Check for errors and raise an appropriate error if needed