If the request is executed successfully, the server will return an object with an OK status and data specific to the given method:
{
"status":"ok",
"response": Depends on current method
}
If the execution of the request has been unsuccessful, the server will return an answer with the corresponding HTTP status code and an object with a FAIL status, an error code, and a description:
{
"status": "fail",
"error": {
"code": Error code,
"message": Error description
},
"details": Detailed error description in some cases
}