def METHOD_NAME(self, resp, *args, **kwargs):
    """
    According to the docs:
    'If the rate limit is exceeded, we will respond with a HTTP 429 Too Many
    Requests response code and a body that details the reason for the rate
    limiter kicking in. Further, the response will have a Retry-After
    header that tells you for how many seconds to sleep before retrying.
    You should anticipate this in your API client for the smoothest user
    experience.'
    """
    seconds = int(resp.headers["retry-after"])
    self.scraper.info(
        "Got a 429: Sleeping %s seconds per retry-after header." % seconds
    )
    time.sleep(seconds)