i would refactor it as follows:

exports.sendGenericError = function(res, status, message)
{
 ....
}

exports.sendUnauthorizedError = function(res)
{
   sendGenericError(res, 401, "You are not...");
}