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

In This Topic
    EnsureSuccessStatusCode Method
    In This Topic
    Throws an exception if the IsSuccessStatusCode property for the HTTP response is false.
    Syntax
    public EsriHttpResponseMessage EnsureSuccessStatusCode()
    Public Function EnsureSuccessStatusCode() As EsriHttpResponseMessage

    Return Value

    EsriHttpResponseMessage
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also