public Response head(Cluster cluster, String path, Header[] headers) throws IOException {
    HttpHead method = new HttpHead(path);
    try {
      HttpResponse resp = execute(cluster, method, null, path);
      return new Response(resp.getStatusLine().getStatusCode(), resp.getAllHeaders(), null);
    } finally {
      method.releaseConnection();
    }
  }
Send a HEAD request
@param cluster the cluster definition
@param path    the path or URI
@param headers the HTTP headers to include in the request
@return a Response object with response detail
hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java