def _fatal_code(e):
    """Return True if an exception/status should not be retried. """
    retryable = not hasattr(e, 'response') or \
        e.response.status_code in [429] or \
        500 <= e.response.status_code <= 599

    return not retryable