Standard Failure Response π°
Imagen MediaControlCentre returns the following response in the body when calls fail (i.e. return code is neitherΒ 200Β orΒ 201).
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Message></Message>
<Details></Details><!-- Further/lengthier details of the error (if there are any)-->
</Error>
JSON error responseΒ
For the cases where the API is to return JSON (ie: the request has set theΒ AcceptΒ header field value toΒ application/json) then the error format is as follows:
{
"Error": {
"Message": /* ...The error message... */,
"Details": /* ...Further/lengthier details of the error (if there are any).. */
}
}