=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/config/AdvanceHttpPostGateWay.java' --- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/config/AdvanceHttpPostGateWay.java 2016-01-04 02:27:49 +0000 +++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/config/AdvanceHttpPostGateWay.java 2016-02-12 11:29:05 +0000 @@ -117,7 +117,9 @@ HttpURLConnection httpConnection = (HttpURLConnection) conn; - if ( httpConnection.getResponseCode() != HttpURLConnection.HTTP_OK ) + if ( httpConnection.getResponseCode() != HttpURLConnection.HTTP_OK + && httpConnection.getResponseCode() != HttpURLConnection.HTTP_ACCEPTED + && httpConnection.getResponseCode() != HttpURLConnection.HTTP_CREATED ) { log.warn( "Couldn't send message, got response " + response + " " + getGatewayId() ); return 0; === modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/config/SimplisticHttpGetGateWay.java' --- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/config/SimplisticHttpGetGateWay.java 2016-01-04 02:27:49 +0000 +++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/config/SimplisticHttpGetGateWay.java 2016-02-12 11:29:05 +0000 @@ -161,7 +161,9 @@ HttpURLConnection httpConnection = (HttpURLConnection) conn; - if ( httpConnection.getResponseCode() != HttpURLConnection.HTTP_OK ) + if ( httpConnection.getResponseCode() != HttpURLConnection.HTTP_OK + && httpConnection.getResponseCode() != HttpURLConnection.HTTP_ACCEPTED + && httpConnection.getResponseCode() != HttpURLConnection.HTTP_CREATED ) { log.warn( "Couldn't send message, got response " + response + " " + getGatewayId() ); return false;