> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblHttpCallGetNetworkErrorCode

> XblHttpCallGetNetworkErrorCode

Get the network error code of the HTTP call.

## Syntax

```cpp theme={null}
HRESULT XblHttpCallGetNetworkErrorCode(  
         XblHttpCallHandle call,  
         HRESULT* networkErrorCode,  
         uint32_t* platformNetworkErrorCode  
)  
```

### Parameters

*call*   \_In\_\
Type: [XblHttpCallHandle](https://docs.xbox.com/reference/live/xsapi-c/http_call_c/handles/xblhttpcallhandle.md)

The handle of the HTTP call.

*networkErrorCode*   \_Out\_\
Type: HRESULT\*

The network error code of the HTTP call. Possible values are S\_OK, or E\_FAIL.

*platformNetworkErrorCode*   \_Out\_\
Type: uint32\_t\*

The platform specific network error code of the HTTP call to be used for tracing / debugging.

### Return value

Type: HRESULT

Result code for this API operation. Possible values are S\_OK, E\_INVALIDARG, or E\_FAIL.

## Remarks

This can only be called after calling [XblHttpCallPerformAsync](https://docs.xbox.com/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync.md) when the HTTP task is completed.

## Requirements

**Header:** http\_call\_c.h

**Library:** Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

## See also

[http\_call\_c](https://docs.xbox.com/reference/live/xsapi-c/http_call_c/http_call_c_members.md)


## Related topics

- [http_call_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/http_call_c/http_call_c_members.md)
- [XblHttpCallPerformAsync](https://docs.xbox.com/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync.md)
- [Web requests overview](https://docs.xbox.com/build/console-features/networking/web-requests/http-networking.md)
- [XblHttpCallGetPlatformNetworkErrorMessage](https://docs.xbox.com/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetplatformnetworkerrormessage.md)
- [HCHttpCallResponseGetNetworkErrorCode](https://docs.xbox.com/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetnetworkerrorcode.md)
