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

设置 HTTP 调用的平台网络错误消息。

## Syntax

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

### Parameters

*call*   \_In\_\
Type: HCCallHandle

HTTP 调用的句柄。

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

HTTP 调用特定于平台的网络错误消息，用于日志记录 / 调试。

### Return value

Type: HRESULT

此 API 操作的结果代码。可能的值为 S\_OK、E\_INVALIDARG 或 E\_FAIL。

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

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


## Related topics

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