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

# ServiceErrorResponse (JSON)

> ServiceErrorResponse (JSON)

# ServiceErrorResponse (JSON)

When a service error is encountered, an appropriate HTTP error code will be returned. Optionally, the service may also include a ServiceErrorResponse object as defined below. In production environments, less data may be included.

<a id="ID4EN" />

## ServiceErrorResponse

The ServiceErrorResponse object has the following specification.

| Member              | Type                  | Description                                   |
| ------------------- | --------------------- | --------------------------------------------- |
| <b>errorCode</b>    | 32-bit signed integer | Code associated with the error (can be null). |
| <b>errorMessage</b> | string                | Additional details about the error.           |

<a id="ID4EVB" />

## Sample JSON syntax

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

<a id="ID4E5B" />

## See also

<a id="ID4EAC" />

##### Parent

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


## Related topics

- [Handling Errors in CloudScript](/services/playfab/live-service-management/service-gateway/automation/cloudscript/handling-errors-in-cloudscript.md)
- [Error codes](/reference/errorcodes.md)
- [PlayFab REST API reference overview](/services/playfab/api-references/index.md)
- [Best practices for calling XBOX services](/services/xbox-services/develop/best-practices/live-best-practices-calling-xbl.md)
- [Writing custom CloudScript](/services/playfab/live-service-management/service-gateway/automation/cloudscript/writing-custom-cloudscript.md)
