title: "Incorrect HTTP method" when trying to insert documents into elasticsearch index
body: <p>I have a bunch of json docs in <code>my_docs.json</code>. I want to insert them into <code>http://localhost:9200/twitter</code>, where <code>twitter</code> is my index.</p>
  
  <p>I tried: <code>curl -XPOST 'http://localhost:9200/twitter' -d @my_docs.json</code> but that returned an error:</p>
  
  <pre><code>{"error":"Incorrect HTTP method for uri [/twitter] and method [POST], allowed: [DELETE, PUT, GET, HEAD]","status":405}
  </code></pre>
  
  <p>How do I fix this?</p>