def METHOD_NAME(orderr):
    """Look for and select `http-01` from the challenges offered by the server."""
    for authz in orderr.authorizations:
        for i in authz.body.challenges:
            if isinstance(i.chall, challenges.HTTP01):
                return i
    raise Exception('HTTP-01 challenge was not offered by the CA server.')