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

Define o código de erro de rede da chamada HTTP.

## Sintaxe

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

### Parâmetros

*call*   \_In\_\
Tipo: HCCallHandle

O identificador da chamada HTTP.

*networkErrorCode*   \_In\_\
Tipo: HRESULT

O código de erro de rede da chamada HTTP.

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

O código de erro de rede específico da plataforma da chamada HTTP, a ser usado para registro em log/depuração.

### Valor retornado

Tipo: HRESULT

Código de resultado desta operação de API. Os valores possíveis são S\_OK, E\_INVALIDARG ou E\_FAIL.

## Requisitos

**Cabeçalho:** httpProvider.h

**Biblioteca:** libHttpClient.GDK.lib

## Confira também

[httpProvider](/pt-BR/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

- [HCMockResponseSetNetworkErrorCode](/pt-BR/reference/live/httpclient/mock/functions/hcmockresponsesetnetworkerrorcode.md)
- [HCHttpCallResponseGetNetworkErrorCode](/pt-BR/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetnetworkerrorcode.md)
- [HCHttpCallResponseSetPlatformNetworkErrorMessage](/pt-BR/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetplatformnetworkerrormessage.md)
- [HCHttpCallResponseGetPlatformNetworkErrorMessage](/pt-BR/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetplatformnetworkerrormessage.md)
- [HCHttpCallResponseSetStatusCode](/pt-BR/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetstatuscode.md)
