diff --git a/server/notification-providers/octopush.js b/server/notification-providers/octopush.js index 35d88f5f3..d5c475d3d 100644 --- a/server/notification-providers/octopush.js +++ b/server/notification-providers/octopush.js @@ -54,7 +54,9 @@ class Octopush extends NotificationProvider { // response data let response = await axios.post("https://www.octopush-dm.com/api/sms/json", {}, config); if ("error_code" in response.data) { - this.throwGeneralAxiosError(`Octopush error ${JSON.stringify(response.data)}`); + if (response.data.error_code !== "000") { + this.throwGeneralAxiosError(`Octopush error ${JSON.stringify(response.data)}`); + } } } else { throw new Error("Unknown Octopush version!");