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

# HCHttpCallResponseSetStatusCode

> HCHttpCallResponseSetStatusCode

# HCHttpCallResponseSetStatusCode

Define o código de status HTTP da resposta da chamada HTTP.

## Sintaxe

```cpp theme={null}
HRESULT HCHttpCallResponseSetStatusCode(  
         HCCallHandle call,  
         uint32_t statusCode  
)  
```

### Parâmetros

*call*   \_In\_\
Tipo: HCCallHandle

O identificador da chamada HTTP.

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

o código de status HTTP da resposta da chamada HTTP.

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

- [HCMockResponseSetStatusCode](/pt-BR/reference/live/httpclient/mock/functions/hcmockresponsesetstatuscode.md)
- [HCHttpCallResponseGetStatusCode](/pt-BR/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetstatuscode.md)
- [HCHttpCallResponseSetNetworkErrorCode](/pt-BR/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetnetworkerrorcode.md)
- [XblHttpCallGetStatusCode](/pt-BR/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetstatuscode.md)
- [HCHttpCallResponseSetResponseBodyBytes](/pt-BR/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetresponsebodybytes.md)
