title: What is the use of -i with curl command
body: <p>Used to check if the index (indices) exists or not. For example:</p>
  
  <pre><code>curl -XHEAD -i 'http://localhost:9200/twitter'
  </code></pre>
  
  <p>The HTTP status code indicates if the index exists or not. A 404 means it does not exist, and 200 means it does.</p>
  
  <p>What is the use of <code>-i</code> option in above example?</p>