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

Establece el código de estado HTTP de la respuesta de la llamada HTTP.

## Sintaxis

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

### Parámetros

*call*   \_In\_\
Tipo: HCCallHandle

El identificador de la llamada HTTP.

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

El código de estado HTTP de la respuesta de la llamada HTTP.

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

- [HCMockResponseSetStatusCode](/es/reference/live/httpclient/mock/functions/hcmockresponsesetstatuscode.md)
- [HCHttpCallResponseGetStatusCode](/es/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetstatuscode.md)
- [HCHttpCallResponseSetNetworkErrorCode](/es/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetnetworkerrorcode.md)
- [XblHttpCallGetStatusCode](/es/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetstatuscode.md)
- [HCHttpCallResponseGetNetworkErrorCode](/es/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetnetworkerrorcode.md)
