> ## 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.

# HCHttpCallResponseSetPlatformNetworkErrorMessage

> HCHttpCallResponseSetPlatformNetworkErrorMessage

# HCHttpCallResponseSetPlatformNetworkErrorMessage

Set the platform network error message of the HTTP call.

## Syntax

```cpp theme={null}
HRESULT HCHttpCallResponseSetPlatformNetworkErrorMessage(  
         HCCallHandle call,  
         const char* platformNetworkErrorMessage  
)  
```

### Parameters

*call*   \_In\_\
Type: HCCallHandle

The handle of the HTTP call.

*platformNetworkErrorMessage*   \_In\_z\_\
Type: char\*

The platform specific network error message 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

- [HCHttpCallResponseGetPlatformNetworkErrorMessage](/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetplatformnetworkerrormessage.md)
- [HCHttpCallResponseSetNetworkErrorCode](/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetnetworkerrorcode.md)
- [XblHttpCallGetPlatformNetworkErrorMessage](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetplatformnetworkerrormessage.md)
- [HCHttpCallResponseGetNetworkErrorCode](/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetnetworkerrorcode.md)
- [HCMockResponseSetNetworkErrorCode](/reference/live/httpclient/mock/functions/hcmockresponsesetnetworkerrorcode.md)
