docs: function sendSuccess(res, result, internalCode) {
  	var obj = {
  			success: true,
  			code: res.statusCode,
  			result: result
  		};
  
  	if (internalCode !== undefined) {
  		obj.internalCode = internalCode;
  	}
  
  	if (!res) {
  		return obj;
  	}
  
  	try {
  		return res.send(obj);
  	}
  	catch(e) {
  		console.error('swagger.respond sendSuccess:', e, 'headersSent', res.headersSent);
  		if (res) {
  			res.end(JSON.stringify(obj));
  		}
  	}
  }