Errors while connecting neo4j and elastic using APOC

Getting the below error in neo4j while trying to connect in elastic

Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure `apoc.es.stats`: Caused by: java.lang.RuntimeException: Can't read url or key http://*.*.*.*:9200/_stats as json: Server returned HTTP response code: 401 for URL: http://*.*.*.*:9200/_stats