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

# HCHttpCallResponseSetNetworkErrorCode

> HCHttpCallResponseSetNetworkErrorCode

# HCHttpCallResponseSetNetworkErrorCode

Establece el código de error de red de la llamada HTTP.

## Sintaxis

```cpp theme={null}
HRESULT HCHttpCallResponseSetNetworkErrorCode(  
         HCCallHandle call,  
         HRESULT networkErrorCode,  
         uint32_t platformNetworkErrorCode  
)  
```

### Parámetros

*call*   \_In\_\
Tipo: HCCallHandle

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:** httpProvider.h

**Biblioteca:** libHttpClient.GDK.lib

## Consulte también

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


## Related topics

- [HCMockResponseSetNetworkErrorCode](/es/reference/live/httpclient/mock/functions/hcmockresponsesetnetworkerrorcode.md)
- [HCHttpCallResponseGetNetworkErrorCode](/es/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetnetworkerrorcode.md)
- [HCHttpCallResponseSetPlatformNetworkErrorMessage](/es/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetplatformnetworkerrormessage.md)
- [HCHttpCallResponseSetStatusCode](/es/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetstatuscode.md)
- [XblHttpCallGetNetworkErrorCode](/es/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetnetworkerrorcode.md)
