To check if an index in open-search we have a function called exists.
BooleanResponse response = openSearchClient.indices().exists(ExistsRequest.of(s -> s.index(indexName)));
This is not working this getting the below error.
I installed the client using Apache HttpClient 5 Transport. [client](Installing the client using Apache HttpClient 5 Transport) Using opensearch.client: 2.4.0 gradle version: 8.1.1 java version: 17 springboot version: 3.1.1
I also tried using OpenSearchIndicesClient still getting the same error