def METHOD_NAME(self, container_name, filename):
    bucket = self._get_container(container_name)
    try:
        return self.s3.head_object(Bucket=bucket, Key=filename)
    except ClientError as e:
        raise exceptions.StoreException(
            "Error while heading file '%s': %s" % (filename, e),
            status_code=e.response["Error"]["Code"],
        )