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

Establece el código de error de red que se devolverá para la simulación.

## Sintaxis

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

### Parámetros

*call*   \_In\_\
Tipo: HCMockCallHandle

El identificador de la llamada HTTP.

*networkErrorCode*   \_In\_\
Tipo: HRESULT

El código de error de red de la llamada HTTP.

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

El código de error de red específico de la plataforma de la llamada HTTP que se usará para el registro y la depuración.

### Valor devuelto

Tipo: HRESULT

Código de resultado de esta operación de API. Los valores posibles son S\_OK, E\_INVALIDARG o E\_FAIL.

## Requisitos

**Encabezado:** mock.h

**Biblioteca:** libHttpClient.GDK.lib

## Consulte también

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


## Related topics

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