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

# HCHttpCallResponseSetNetworkErrorCode

> HCHttpCallResponseSetNetworkErrorCode

# HCHttpCallResponseSetNetworkErrorCode

Set the network error code of the HTTP call.

## Syntax

```cpp theme={null}
HRESULT HCHttpCallResponseSetNetworkErrorCode(  
         HCCallHandle call,  
         HRESULT networkErrorCode,  
         uint32_t platformNetworkErrorCode  
)  
```

### Parameters

*call*   \_In\_\
Type: HCCallHandle

The handle of the HTTP call.

*networkErrorCode*   \_In\_\
Type: HRESULT

The network error code of the HTTP call.

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

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

### Return value

Type: HRESULT

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

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

[httpProvider](/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

- [HCMockResponseSetNetworkErrorCode](/reference/live/httpclient/mock/functions/hcmockresponsesetnetworkerrorcode.md)
- [HCHttpCallResponseGetNetworkErrorCode](/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetnetworkerrorcode.md)
- [HCHttpCallResponseSetPlatformNetworkErrorMessage](/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetplatformnetworkerrormessage.md)
- [HCHttpCallResponseGetPlatformNetworkErrorMessage](/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetplatformnetworkerrormessage.md)
- [HCHttpCallResponseSetStatusCode](/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetstatuscode.md)
