Skip to content

Response Object

HarpyWar edited this page Jan 16, 2019 · 1 revision

SuccessResponse

You can be sure result succeed when result = "success".

data field contains useful data returned from a called method.

{
    "data": { ... },
    "result": "success"
}

ErrorResponse

If result = error then something wrong. General error message is in errorMessage and stack trace or other details are in errorDetails.

{
    "errorCode": "MISS_PARAM",
    "errorMessage": "Type parameter is empty (allowed: charinfo, charsave, charitem)",
    "errorDetails": "",
    "result": "error"
}
Clone this wiki locally