def _check_response(status_code):
    """Checks the first digit of a status code returned by a GET, and
    assumes/asserts any 2xx/3xx status code is ok.
    """
    first_digit = status_code // 100
    assert first_digit in {2, 3}, 'Bad status code'
