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

# ServiceErrorResponse (JSON)

> ServiceErrorResponse (JSON)

# ServiceErrorResponse (JSON)

發生服務錯誤時，會傳回適當的 HTTP 錯誤碼。服務也可以選擇性地包含如下定義的 ServiceErrorResponse 物件。在生產環境中，包含的資料可能較少。

## ServiceErrorResponse

ServiceErrorResponse 物件具有下列規格。

| 成員 | 類型 | 描述 |
| - | - | - |
| **errorCode** | 32 位元帶正負號的整數 | 與錯誤相關聯的代碼 (可以是 null)。 |
| **errorMessage** | string | 有關錯誤的其他詳細資料。 |

## 範例 JSON 語法

```json theme={null}
{
   "errorCode": 8377,
   "errorMessage": "XUID specified in the claim does not match URI XUID."
 }
    
```

## 另請參閱

##### 上層

[JavaScript Object Notation (JSON) 物件參考](https://docs.xbox.com/zh-TW/reference/live/rest/json/atoc-xboxlivews-reference-json.md)


## Related topics

- [JavaScript 物件標記法 (JSON) 物件參考](https://docs.xbox.com/zh-TW/reference/live/rest/json/atoc-xboxlivews-reference-json.md)
- [GameClipsServiceErrorResponse (JSON)](https://docs.xbox.com/zh-TW/reference/live/rest/json/json-gameclipsserviceerrorresponse.md)
- [ServiceError (JSON)](https://docs.xbox.com/zh-TW/reference/live/rest/json/json-serviceerror.md)
- [Unlink Google Play Games Services Account](https://docs.xbox.com/api-reference/account-management/unlink-google-play-games-services-account.md)
- [取消連結 Nintendo Service Account](https://docs.xbox.com/zh-TW/services/playfab/api-references/rest/client/account-management/unlink-nintendo-service-account.md)
