module.exports = {

    handleResponseCode: function(response) {
        var status = parseInt(response.status, 10);
        if (status >= 400) {
            throw new Error(`Invalid response: ${status} ${response.statusText}`);
        }
        return response;
    }

};

module.exports = {

    handleResponseCode: function(response) {
        var status = parseInt(response.status, 10);
        if (status >= 400) {
            throw new Error("Invalid response: " + status + " " + response.statusText);
        }
        return response;
    }

};

Remove incompatible code for 0.12
Remove incompatible code for 0.12
