NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Allowed status codes
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Allowed status codes
editvar audit = new Auditor(() => Framework.Cluster .Nodes(10) .ClientCalls(r => r.FailAlways(400)) .StaticConnectionPool() .Settings(s => s.DisablePing().MaximumRetries(0)) ); audit = await audit.TraceCalls( new ClientCall { { BadResponse, 9200 } }, new ClientCall(r => r.AllowedStatusCodes(400)) { { HealthyResponse, 9201 } } );