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

# XblGetErrorCondition

> XblGetErrorCondition

Groups HRESULT values returned from Xbl APIs in to error condition buckets that are actionable.

## Syntax

```cpp theme={null}
XblErrorCondition XblGetErrorCondition(  
         HRESULT hr  
)  
```

### Parameters

*hr*   \_In\_\
Type: HRESULT

HRESULT value returned from an Xbl API.

### Return value

Type: XblErrorCondition

The corresponding XblErrorCondition.

## Requirements

**Header:** errors\_c.h

**Library:** Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

## See also

[errors\_c](https://docs.xbox.com/reference/live/xsapi-c/errors_c/errors_c_members.md)


## Related topics

- [XblErrorCondition](https://docs.xbox.com/reference/live/xsapi-c/errors_c/enums/xblerrorcondition.md)
- [errors_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/errors_c/errors_c_members.md)
- [XblPresenceSetPresenceAsync](https://docs.xbox.com/reference/live/xsapi-c/presence_c/functions/xblpresencesetpresenceasync.md)
- [XblPrivacyCheckPermissionAsync](https://docs.xbox.com/reference/live/xsapi-c/privacy_c/functions/xblprivacycheckpermissionasync.md)
- [XblPrivacyBatchCheckPermissionAsync](https://docs.xbox.com/reference/live/xsapi-c/privacy_c/functions/xblprivacybatchcheckpermissionasync.md)
