expectSuccess

Terminates HttpClient.receivePipeline if the status code is not successful (>=300). Learn more from Response validation.

For more details, see the HttpCallValidator documentation.