indices-exists.asciidoc 383 B

1234567891011121314
  1. [[indices-exists]]
  2. == Indices Exists
  3. Used to check if the index (indices) exists or not. For example:
  4. [source,js]
  5. --------------------------------------------------
  6. HEAD twitter
  7. --------------------------------------------------
  8. // CONSOLE
  9. // TEST[setup:twitter]
  10. The HTTP status code indicates if the index exists or not. A `404` means
  11. it does not exist, and `200` means it does.