def METHOD_NAME(self):
    if self.error_list is not None and self.url in self.error_list:
        http_error_msg = "%s Client Error: %s for url: %s" % (
            400,
            "Simulate error",
            self.url,
        )
        raise HTTPError(http_error_msg, response=self)