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

# ServiceError (JSON)

> ServiceError (JSON)

# ServiceError (JSON)

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

<a id="ID4EN" />

## 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 <code>ReputationFD</code> indicates that the error was in the reputation service. |
| description | string                | A description of the error.                                                                                                                              |

<a id="ID4EBC" />

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

<a id="ID4EQE" />

## Sample JSON syntax

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

<a id="ID4EZE" />

## See also

<a id="ID4E2E" />

##### Parent

[JavaScript Object Notation (JSON) Object Reference](/reference/live/rest/json/atoc-xboxlivews-reference-json)


## Related topics

- [Renewing a User Store ID key](/publishing/xstore-commerce/xstore-renew-userstoreid.md)
- [Renovación de una clave de User Store ID](/es/publishing/xstore-commerce/xstore-renew-userstoreid.md)
- [续订 User Store ID 密钥](/zh-CN/publishing/xstore-commerce/xstore-renew-userstoreid.md)
- [collections.mp.microsoft.com/v8.0/collections/consume](/reference/microsoft-store-apis/xstore-v8-consume.md)
- [User Store ID 키 갱신](/ko/publishing/xstore-commerce/xstore-renew-userstoreid.md)
