@@ -252,12 +252,15 @@ private function validateResponse($response)
252
252
switch ((string ) $ response ->response_code ) {
253
253
case 202 :
254
254
return $ response ;
255
+ case 1001 :
256
+ $ this ->logError ('Validation Error ' , $ response );
257
+ throw new \Exception ('Invalid Number ' , 1001 );
255
258
case 1002 :
256
259
$ this ->logError ('Validation Error ' , $ response );
257
260
throw new \Exception ('Sender Id/Masking Not Found ' , 1002 );
258
261
case 1003 :
259
262
$ this ->logError ('Validation Error ' , $ response );
260
- throw new \Exception ('API Not Found ' , 1003 );
263
+ throw new \Exception ('Please Required all fields/Contact Your System Administrator ' , 1003 );
261
264
case 1004 :
262
265
$ this ->logError ('Validation Error ' , $ response );
263
266
throw new \Exception ('SPAM Detected ' , 1004 );
@@ -266,7 +269,7 @@ private function validateResponse($response)
266
269
throw new \Exception ('Internal Error ' , 1005 );
267
270
case 1006 :
268
271
$ this ->logError ('Validation Error ' , $ response );
269
- throw new \Exception ('Internal Error ' , 1006 );
272
+ throw new \Exception ('Balance Validity Not Available ' , 1006 );
270
273
case 1007 :
271
274
$ this ->logError ('Validation Error ' , $ response );
272
275
throw new \Exception ('Balance Insufficient ' , 1007 );
@@ -284,13 +287,13 @@ private function validateResponse($response)
284
287
throw new \Exception ('Invalid User Id ' , 1011 );
285
288
case 1012 :
286
289
$ this ->logError ('Validation Error ' , $ response );
287
- throw new \Exception ('Invalid Number ' , 1012 );
290
+ throw new \Exception ('Masking SMS must be sent in Bengali ' , 1012 );
288
291
case 1013 :
289
292
$ this ->logError ('Validation Error ' , $ response );
290
- throw new \Exception ('API limit error ' , 1013 );
293
+ throw new \Exception ('Sender Id has not found Gateway by api key ' , 1013 );
291
294
case 1014 :
292
295
$ this ->logError ('Validation Error ' , $ response );
293
- throw new \Exception ('No matching template ' , 1014 );
296
+ throw new \Exception ('Sender Type Name not found using this sender by api key ' , 1014 );
294
297
case 1015 :
295
298
$ this ->logError ('Validation Error ' , $ response );
296
299
throw new \Exception ('Sender Id has not found Any Valid Gateway by api key ' , 1015 );
@@ -312,6 +315,12 @@ private function validateResponse($response)
312
315
case 1021 :
313
316
$ this ->logError ('Validation Error ' , $ response );
314
317
throw new \Exception ('The parent active (sender type name) price of this account is not found. ' , 1021 );
318
+ case 1031 :
319
+ $ this ->logError ('Validation Error ' , $ response );
320
+ throw new \Exception ('Your Account Not Verified, Please Contact Administrator. ' , 1031 );
321
+ case 1032 :
322
+ $ this ->logError ('Validation Error ' , $ response );
323
+ throw new \Exception ('IP Not Whitelisted ' , 1032 );
315
324
default :
316
325
$ this ->logError ('Validation Error ' , $ response );
317
326
throw new \Exception ('Unknown ' , -1 );
0 commit comments