Wa API v2 Push Notification
Wa API v2 Push Notification
Response Code
The standard OCA WA API Gateway returns HTTP codes in addition to JSON-based error
codes and success messages
200 OK Success
404 Not Found There is no data available, like user setting etc.
A successful message will appear as a response value if the HTTP Status code returns 200
(OK). It has a format like the image below
Error Messages
OCA WA API error messages are returned in JSON Format. Each HTTP Status Code will be
accompanied by descriptive error text and code. For example, an error might occur.
Error Codes
This error codes is additional information to explain what happened when some errors
occurred. The following table describes the code which may appear when working with OCA
WA API Gateway. If an error is not listed in the table, going back to HTTP status codes above
in order to determine the best way to address the issues.
9 Too Many Due to the api rate limit, you have to wait until
Request Code the currently window expires, the default api
rate limit is in 25 request per seconds. You can
check http headers response in order to know
the remaining limit of your request.
• X-RateLimit-limit : the rate limit of
endpoint
• X-RateLimit-Remaining : the number of
request left
• X-RateLimit-Reset: the remaining
window before the rate limit resets