ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Core Namespace / EsriHttpResponseMessage Class / EnsureSuccessStatusCode Method

EnsureSuccessStatusCode Method
Throws an exception if the IsSuccessStatusCode property for the HTTP response is false.
Syntax
public EsriHttpResponseMessage EnsureSuccessStatusCode()

Return Value

EsriHttpResponseMessage
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.0 or higher.
See Also