def METHOD_NAME(url):
    h = httplib2.Http(timeout=10)
    logger.debug("Checking for existence of %s via HTTP HEAD" % url)
    try:
        (response_headers, response_body) = h.request(url, "HEAD")
        logger.trace("Response headers: %s" % response_headers)
    except (
        httplib2.HttpLib2Error,
        http.client.HTTPException,
        socket.error,
    ) as e:
        logger.error(
            "Checking download url %s failed: %s: %s" % (url, e.__class__.__name__, e)
        )
        return False
    if response_headers["status"] == "200":
        logger.debug("Ok, got HTTP 200")
        return True
    if response_headers["status"] == "404":
        logger.error("The location %s cannot be found." % url)
        return False
    logger.error(
        "Checking download url %s failed, HTTP status code %s"
        % (url, response_headers["status"])
    )
    return False