var request = require("request").defaults({
    'proxy': process.env.http_proxy || process.env.HTTP_PROXY,
    'timeout': 20 * 1000
});

var veoozArticleUtils = require("../articles/veoozArticleUtils.js");

var config = require('./config.json');

module.exports.pushArticle = function (article) {
    return new Promise(function(resolve, reject) {
        request.post(
            {
                url: "http://www.veooz.com/api/v2/pusharticles",
                form: {
                    apikey: config.veoozApikey,
                    article: JSON.stringify(veoozArticleUtils.convertAccessibleArticle(article))
                }
            },
            function (err, res, body) {
                if (err) {
                    reject(err);
                } else {
                    resolve();
                }
            }
        );
    });
};

@@ -707,16 +707,41 @@
  if (err
+ %7C%7C res.statusCode != 200
 ) %7B%0A    
@@ -766,16 +766,49 @@
 ject(err
+ %7C%7C res.statusCode + %22 - %22 + body
 );%0A     

Check response code of Veooz API call