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

# ServiceError (JSON)

> ServiceError (JSON)

Contains information about an error returned when a call to the service failed.

## ServiceError

The ServiceError object has the following specification.

| Member | Type | Description |
| - | - | - |
| code | 32-bit signed integer | The type of error. See the table below for possible values. |
| source | string | The name of the service that raised the error. For example, a value of `ReputationFD` indicates that the error was in the reputation service. |
| description | string | A description of the error. |

### Error Codes

\| Value| Description|
\| --- | --- | --- | --- | --- |
\| 0| Success No error|
\| 4000| Invalid Request Body The JSON document submitted with a POST request failed validation. See the description field for details. |
\| 4100| User Does Not Exist The XUID contained in the request URI does not represent a valid user on XBOX Live.|
\| 4500| Authorization Error The caller is not authorized to perform the requested operation.|
\| 5000| Service Error There was an internal error in the service|
\| 5300| Service Unavailable The service is unavailable.|

## Sample JSON syntax

```json theme={null}
{
    "code": 4000,
    "source": "ReputationFD",
    "description": "No targetXuid field was supplied in the request"
}
    
```

## See also

##### Parent

[JavaScript Object Notation (JSON) Object Reference](https://docs.xbox.com/reference/live/rest/json/atoc-xboxlivews-reference-json.md)


## Related topics

- [JavaScript Object Notation (JSON) Object Reference](https://docs.xbox.com/reference/live/rest/json/atoc-xboxlivews-reference-json.md)
- [ServiceErrorResponse (JSON)](https://docs.xbox.com/reference/live/rest/json/json-serviceerrorresponse.md)
- [GameClipsServiceErrorResponse (JSON)](https://docs.xbox.com/reference/live/rest/json/json-gameclipsserviceerrorresponse.md)
- [Renewing a User Store ID key](https://docs.xbox.com/publishing/xstore-commerce/xstore-renew-userstoreid.md)
- [collections.mp.microsoft.com/v8.0/collections/consume](https://docs.xbox.com/reference/microsoft-store-apis/xstore-v8-consume.md)
