Error Codes- 100: invalid HTTP method
- The HTTP method used is incorrect
- 101: invalid API key
- The API key used is invalid
- 102: invalid session
- The session id is invalid
- 103: invalid API method
- The API method used is invalid
- 104: invalid response format
- The response format requested is not supported
- 105: invalid user and/or password
- The login credentials provided were invalid
- 106: not signed in
- The referenced session contained no signed-in user
- 107: already signed in
- The referenced session already contains a signed-in user
- 108: invalid user
- 109: invalid encoding: use utf-8
- The encoding is not UTF-8
- 111: repeated counter
- You are repeatedly calling event.observe with the same stale counter value. Verify that you are properly updating your local counter.
- 113: invalid counter
- The counter parameter is invalid
- 114: conversation closed
- The referenced conversation is closed so you can't reply
- 115: not allowed
- Your API key is not allowed to perform that action
- 116: not for signed in
- You must sign out first to perform this action
- 117: no name given: sign in or use set_guestname
- You must first sign in or set a guest name before reply
- 118: text is too long
- The size of text cannot be over 1000 characters
- 119: invalid subdomain
- API requests must be made to api.rejaw.com or *.api.rejaw.com subdomain
- 997: missing parameter
- Some parameters are missing
- 998: invalid parameter
- Some parameters are invalid
- 999: unspecified failure
Sample responsesXMLA successful method call returns a document like this: <?xml version="1.0" encoding="UTF-8"?>
<response>
<status>ok</stat>
[method-specific-payload]
</response> If an error occurs, a document like the following is returned: <?xml version="1.0" encoding="UTF-8"?>
<response>
<status>fail</status>
<error>
<code>[error-code]</code>
<message>[error-message]</message>
<detail>[detail-if-any]</detail>
</error>
</response>The values for the method-specific-payload item is defined on each method’s reference page. JSONA successful method call returns a JSON data structure like this: {
"status": "ok",
[method-specific-payload]
}If, for example, the parameter “callback” was passed with the value “myFunction”, the following would be returned: myFunction({
"status": "ok",
[method-specific-payload]
});If an error occurs, a JSON data structure like the following is returned: {
"status": "fail",
"error": {
"code": [error-code],
"message": [error-message],
"detail": [detail-if-any]
}
}Likewise, if the parameter “callback” was passed with the value “whizBang”, the following would be returned: whizBang({
"status": "fail",
"error": {
"code": [error-code],
"message": [error-message],
"detail": [detail-if-any]
}
});The values for the method-specific-payload item is defined on each method’s reference page.
|