How to check server error on Nest 6.xx

I used to use ElasticsearchClientException.Response.ServerError to check server error details on Nest 5.x. e.g., ex.Response.ServerError.Error.Type.Equals("index_already_exists_exception", StringComparison.OrdinalIgnoreCase). However the property ServerError was removed from IApiCallDetails onNest 6.x. Is there any property to use for this purpose? The only way to check this seems to check the Message property of an exception.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.