src/index.js
function(code, err) {
        this.response = {
            response: {
                statusCode: code,
                headers: {},
            },
            body: null,
            err: err,
        };
    }
function(code, err) {
        this.response = {
            response: {
                statusCode: code,
                headers: {},
            },
            body: null,
            err: err,
        };
    }
function ( code , err ) { this . response = { response : { statusCode : code , headers : { } , } , body : null , err : err , } ; }
Fail with an Error when this request is satisfied.
@param {Number} code The HTTP status code.
@param {Error} err The error to throw (e.g. Network Error)
Fail with an Error when this request is satisfied .