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

{
    "code": 4000,
    "source": "ReputationFD",
    "description": "No targetXuid field was supplied in the request"
}
    

See also

Parent

JavaScript Object Notation (JSON) Object Reference