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

サービス呼び出しが失敗したときに返されるエラーに関する情報を含みます。

## ServiceError

ServiceError オブジェクトの仕様は次のとおりです。

| メンバー | 型 | 説明 |
| - | - | - |
| code | 32 ビット符号付き整数 | エラーの種類。取り得る値については以下の表を参照してください。 |
| source | string | エラーを発生させたサービスの名前。たとえば `ReputationFD` の値は、reputation サービスでエラーが発生したことを示します。 |
| description | string | エラーの説明。 |

### エラー コード

\| 値| 説明|
\| --- | --- | --- | --- | --- |
\| 0| Success エラーなし|
\| 4000| Invalid Request Body POST リクエストと共に送信された JSON ドキュメントの検証に失敗しました。詳細は description フィールドを参照してください。 |
\| 4100| User Does Not Exist リクエスト URI に含まれる XUID が XBOX Live 上の有効なユーザーを表していません。|
\| 4500| Authorization Error 呼び出し元は要求された操作を実行する権限がありません。|
\| 5000| Service Error サービス内部でエラーが発生しました。|
\| 5300| Service Unavailable サービスを利用できません。|

## サンプル JSON 構文

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

## 関連項目

##### 親

[JavaScript Object Notation (JSON) オブジェクト リファレンス](/ja-jp/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)
- [purchase.mp.microsoft.com/v7.0/purchases/grant](/reference/microsoft-store-apis/xstore-v8-grant.md)
