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

# HCMockResponseSetNetworkErrorCode

> HCMockResponseSetNetworkErrorCode

# HCMockResponseSetNetworkErrorCode

mock에서 반환할 네트워크 오류 코드를 설정합니다.

## Syntax

```cpp theme={null}
HRESULT HCMockResponseSetNetworkErrorCode(  
         HCMockCallHandle call,  
         HRESULT networkErrorCode,  
         uint32_t platformNetworkErrorCode  
)  
```

### Parameters

*call*   \_In\_\
Type: HCMockCallHandle

HTTP 호출의 핸들입니다.

*networkErrorCode*   \_In\_\
Type: HRESULT

HTTP 호출의 네트워크 오류 코드입니다.

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

로깅/디버깅에 사용할 HTTP 호출의 플랫폼별 네트워크 오류 코드입니다.

### Return value

Type: HRESULT

이 API 작업의 결과 코드입니다. 가능한 값은 S\_OK, E\_INVALIDARG 또는 E\_FAIL입니다.

## Requirements

**Header:** mock.h

**Library:** libHttpClient.GDK.lib

## See also

[mock](/reference/live/httpclient/mock/mock_members)


## Related topics

- [HCMockResponseSetStatusCode](/ko/reference/live/httpclient/mock/functions/hcmockresponsesetstatuscode.md)
- [HCHttpCallResponseSetNetworkErrorCode](/ko/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetnetworkerrorcode.md)
- [HCHttpCallResponseGetNetworkErrorCode](/ko/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetnetworkerrorcode.md)
- [HCHttpCallResponseSetPlatformNetworkErrorMessage](/ko/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetplatformnetworkerrormessage.md)
- [HCMockResponseSetHeader](/ko/reference/live/httpclient/mock/functions/hcmockresponsesetheader.md)
