def METHOD_NAME():
    """Test if index is not present then List should return failure response."""
    httpconnection = Mock(spec=HTTPConnection)
    httpresponse = Mock(spec=HTTPResponse)
    httpresponse.status = 404
    httpresponse.getheaders.return_value = \
        'Content-Type:text/html;Content-Length:14'
    httpresponse.read.return_value = b'{}'
    httpresponse.reason = 'NOT FOUND'
    httpconnection.getresponse.return_value = httpresponse
    config = CORTXS3Config()
    response = CORTXS3IndexApi(config, CONNECTION_TYPE_PRODUCER, connection=httpconnection).list("test_index2")
    if (response is not None):
        assert response[0] is False
        assert response[1] is not None