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

# HCHttpCallRequestGetTimeoutWindow

> HCHttpCallRequestGetTimeoutWindow

# HCHttpCallRequestGetTimeoutWindow

Sets the HTTP timeout window in seconds.

## Syntax

```cpp theme={null}
HRESULT HCHttpCallRequestGetTimeoutWindow(  
         HCCallHandle call,  
         uint32_t* timeoutWindowInSeconds  
)  
```

### Parameters

*call*   \_In\_opt\_\
Type: HCCallHandle

The handle of the HTTP call. Pass nullptr to get the default for future calls.

*timeoutWindowInSeconds*   \_Out\_\
Type: uint32\_t\*

The timeout window in seconds.

### Return value

Type: HRESULT

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

## Remarks

This controls how long to spend attempting to retry idempotent service calls before failing.<br /> The default is 20 seconds.<br /><br /> Idempotent service calls are retried when a network error occurs or the server responds <br /> with one of these HTTP status codes:<br /> 408 (Request Timeout)<br /> 429 (Too Many Requests)<br /> 500 (Internal Server Error)<br /> 502 (Bad Gateway)<br /> 503 (Service Unavailable)<br /> 504 (Gateway Timeout)<br />

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

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