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

# XblHttpCallRequestSetRetryCacheId

> XblHttpCallRequestSetRetryCacheId

# XblHttpCallRequestSetRetryCacheId

ID number of this REST endpoint used to cache the Retry-After header for fast fail.

## Syntax

```cpp theme={null}
HRESULT XblHttpCallRequestSetRetryCacheId(  
         XblHttpCallHandle call,  
         uint32_t retryAfterCacheId  
)  
```

### Parameters

*call*   \_In\_\
Type: [XblHttpCallHandle](/reference/live/xsapi-c/http_call_c/handles/xblhttpcallhandle)

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

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

ID number of this REST endpoint used to cache the Retry-After header for fast fail. 1-1000 are reserved for XSAPI.

### Return value

Type: HRESULT

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

## Remarks

This must be called prior to calling [XblHttpCallPerformAsync](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync).

## Requirements

**Header:** http\_call\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

[http\_call\_c](/reference/live/xsapi-c/http_call_c/http_call_c_members)


## Related topics

- [HCHttpCallRequestSetRetryCacheId](/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetretrycacheid.md)
- [HCHttpCallRequestGetRetryCacheId](/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretrycacheid.md)
- [XblHttpCallRequestSetRetryAllowed](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetretryallowed.md)
- [HCHttpCallRequestSetRetryAllowed](/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetretryallowed.md)
- [HCHttpCallRequestSetRetryDelay](/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetretrydelay.md)
