These errors are triggered from an HTTP response that isn't 2XX:
ApiError
NotFoundError
ConflictError
RequestError
AuthenticationException
AuthorizationException
UnsupportedProductError
These errors are triggered by an error occurring before an HTTP response arrives:
TransportError
SerializationError
ConnectionError
ConnectionTimeout
SSLError
ElasticsearchWarning