def origin_db_head(self, env, req):
        """
        Handles HEAD requests into Origin database
        """
        try:
            vsn, account, container = split_path(req.path, 3, 3)
        except __HOLE__:
            return HTTPBadRequest()
        hsh = self.hash_path(account, container)
        cdn_obj_path = self.get_hsh_obj_path(hsh)
        hash_data = self.get_cdn_data(env, cdn_obj_path)
        if hash_data:
            headers = self.get_cdn_urls(hsh, 'HEAD')
            headers.update(
                {'X-TTL': hash_data.ttl,
                 'X-Log-Retention': hash_data.logs_enabled and
                 'True' or 'False',
                 'X-CDN-Enabled': hash_data.cdn_enabled and 'True' or 'False'})
            return HTTPNoContent(headers=headers)
        return HTTPNotFound(request=req)
dataset/ETHPy150Open dpgoetz/sos/sos/origin.py/OriginDbHandler.origin_db_head