These ES API use HTTP status code as the return value.

- index exists
- types exists

Therefore we pass-through those values back to caller.

For those API using HTTP HEAD method, the response body is empty.
For those cases, we map empty body to an `undef` value.
live test with a local elasticsearch installation.