HTTP Status Code

HTTP Status Code SearchSearch
Author Message
Mathew Mathachan
New member
Username: Mathewm

Post Number: 48
Registered: 04-2011
Posted on Tuesday, October 14, 2014 - 09:18 am:   

Hi

ver 2013.11.15

HTTP Status code returned when PreAuth=Deny is 503.
HTTP Status code returned for Throttling response is 503.

Is there a way to differentiate these errors as we need (submitting application) to RETRY submission for some error conditions and NOT RETRY for some error conditions.

Is there a documentation on the HTTP status code returned for different error conditions and recommendations on the follow up action for them.

Mathew
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5080
Registered: 08-2008
Posted on Tuesday, October 14, 2014 - 08:59 pm:   

Hi Mathew,

At present, the only way to differentiate is by parsing the text of the response. The accounting callback can use RejectMessage= in the accounting response to specify this text.

Unfortunately it is not possible to set the HTTP status code like it is the SMPP response code.

I discussed this briefly with one of our engineers and he indicated it could be possible to add this, but it would be easiest to add a setting that mapped SMPP code ESME_RTHROTTLED to a specific HTTP status code. That would take some development effort, but maybe RejectMessage= would work for now?

--
Des
NowSMS Support
Mathew Mathachan
New member
Username: Mathewm

Post Number: 50
Registered: 04-2011
Posted on Wednesday, October 15, 2014 - 11:33 am:   

Thanks Des