This error codes is additional information to explain what happened when some errors occured. The following table describe the code which may appear when working with OCA EMAIL 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.
5
low-balance
Indicationg that your account has no enough balance left
9
Too Many Request Code
Due to the api rate limit, you have to wait until the currently window wxpires, the default api rate limit is in 25 request per seconds. You can check http headers reaponse in order to know the remaining limit of your request. - X-RateLimit-limit : the rate limit of endpoint - X-RateLmit-Remaining : the number of request left - X-RateLimit-Reset : the remaining window before the rate limit resets
13
Internal Error
Corresponds with HTTP 500. An unknown internal error occured
19
Missing Authorization Header
Corresponds with HTTP 401. It indicates Authorization header is not set properly
33
Data doesn't exist
Corresponds with HTTP 404. The certain data is not found
39
[object]
Corresponds with HTTP 406. There are incorrects or missing parameter in request body, it is like the message_value is not same as the template message
43
Auth token is not supplied
Corresponds with HTTP 401. It indicates Authorization header is not set properly
45
Auth token is not valid
Corresponds with HTTP 401. It indicates Authorization token is not valid
59
Whatsapp Template doesn't exist Code
Corresponds with HTTP 406. Your message template doesn't exist