> ## 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 呼叫的平台網路錯誤訊息。

## 語法

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

### 參數

*call*   \_In\_\
類型：HCCallHandle

HTTP 呼叫的控制代碼。

*platformNetworkErrorMessage*   \_In\_z\_\
類型：char\*

HTTP 呼叫的平台特定網路錯誤訊息，用於記錄 / 偵錯。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。可能的值為 S\_OK、E\_INVALIDARG 或 E\_FAIL。

## 需求

**標頭：** httpProvider.h

**程式庫：** libHttpClient.GDK.lib

## 另請參閱

[httpProvider](/zh-TW/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

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