> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# HCHttpCallRequestGetTimeoutWindow

> HCHttpCallRequestGetTimeoutWindow

Gets 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.\
&#x20;The default is 20 seconds.\
\
&#x20;Idempotent service calls are retried when a network error occurs or the server responds \
&#x20;with one of these HTTP status codes:\
&#x20;408 (Request Timeout)\
&#x20;429 (Too Many Requests)\
&#x20;500 (Internal Server Error)\
&#x20;502 (Bad Gateway)\
&#x20;503 (Service Unavailable)\
&#x20;504 (Gateway Timeout)\


## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[httpProvider](https://docs.xbox.com/reference/live/httpclient/httpprovider/httpprovider_members.md)


## Related topics

- [httpProvider (contents)](https://docs.xbox.com/reference/live/httpclient/httpprovider/httpprovider_members.md)
- [HCHttpCallRequestSetTimeoutWindow](https://docs.xbox.com/reference/live/httpclient/httpclient/functions/hchttpcallrequestsettimeoutwindow.md)
- [HCHttpCallRequestGetTimeout](https://docs.xbox.com/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgettimeout.md)
- [HCHttpCallRequestGetRetryDelay](https://docs.xbox.com/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretrydelay.md)
- [XblContextSettingsGetHttpTimeoutWindow](https://docs.xbox.com/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgethttptimeoutwindow.md)
