code: function attemptToExtractStatusCode(req) {
  
    if (has(req, 'response') && isObject(req.response) &&
        has(req.response, 'statusCode')) {
  
      return req.response.statusCode;
    } else if (has(req, 'response') && isObject(req.response) &&
               isObject(req.response.output)) {
  
      return req.response.output.statusCode;
    }
  
    return 0;
  }
docs: This function is used to check for a pending status code on the response
  or a set status code on the response.output object property. If neither of
  these properties can be found then -1 will be returned as the output.
  @function attemptToExtractStatusCode
  @param {Object} req - the request information object to extract from
  @returns {Number} - Either an HTTP status code or -1 in absence of an
  extractable status code.