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

Set the HTTP status code of the HTTP call response.

## Syntax

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

### Parameters

*call*   \_In\_\
Type: HCCallHandle

The handle of the HTTP call.

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

the HTTP status code of the HTTP call response.

### Return value

Type: HRESULT

Result code for this API operation. Possible values are S\_OK, E\_INVALIDARG, or E\_FAIL.

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

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


## Related topics

- [HCMockResponseSetStatusCode](/reference/live/httpclient/mock/functions/hcmockresponsesetstatuscode.md)
- [HCHttpCallResponseGetStatusCode](/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetstatuscode.md)
- [HTTP response status codes](/services/playfab/api-references/http-response-status-codes.md)
- [XblHttpCallGetStatusCode](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetstatuscode.md)
- [HCHttpCallResponseSetNetworkErrorCode](/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetnetworkerrorcode.md)
