code: function afterHeadersResolve (body, result) {
  
  			logger.info(methodName+': running `afterHeaders` hook');
  			globalize.afterHeaders.call(threadneedle, config, null, body, params, result.response)
  
  			.done(
  				function (headers) {
  					resolve(formatResponse(headers, body));
  				},
  				function (error) {
  					reject(formatResponse({}, error));
  				}
  			);
  
  		}
docs: Handle afterHeader for resolving