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

# XblErrorCondition

> XblErrorCondition

Enumeration values that define the XBOX Live API error conditions.

## Syntax

```cpp theme={null}
enum class XblErrorCondition  : uint32_t  
{  
    NoError = 0,  
    GenericError,  
    GenericOutOfRange,  
    Auth,  
    Network,  
    HttpGeneric,  
    Http304NotModified,  
    Http404NotFound,  
    Http412PreconditionFailed,  
    Http429TooManyRequests,  
    HttpServiceTimeout,  
    Rta  
}  
```

## Constants

| Constant | Description |
| - | - |
| NoError | No error. |
| GenericError | A generic error condition. |
| GenericOutOfRange | An error condition related to an object being out of range. |
| Auth | An error condition related to attempting to authenticate. |
| Network | An error condition related to network connectivity. |
| HttpGeneric | An error condition related to an HTTP method call. |
| Http304NotModified | The requested resource was not modified. |
| Http404NotFound | The requested resource was not found. |
| Http412PreconditionFailed | The precondition given in one or more of the request-header fields evaluated to false when it was tested on the server. |
| Http429TooManyRequests | Client is sending too many requests |
| HttpServiceTimeout | The service timed out while attempting to process the request. |
| Rta | An error related to real time activity. |

## Remarks

A best practice is to test the returned HRESULT against these error conditions using [XblGetErrorCondition](https://docs.xbox.com/reference/live/xsapi-c/errors_c/functions/xblgeterrorcondition.md).

## Requirements

**Header:** errors\_c.h

## See also

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


## Related topics

- [XblGetErrorCondition](https://docs.xbox.com/reference/live/xsapi-c/errors_c/functions/xblgeterrorcondition.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)
