lib/server/base_server.js
/**
 * construct a service Fault response
 * @method makeServiceFault
 * @param statusCode
 * @param messages
 */
construct a service Fault response
@method makeServiceFault
@param statusCode
@param messages
construct a service Fault response @method makeServiceFault @param statusCode @param messages
function makeServiceFault(statusCode, messages) {
    var response = new s.ServiceFault();
    response.responseHeader.serviceResult = statusCode;
    assert(_.isArray(messages));
    assert(typeof messages[0] === "string");
    response.responseHeader.stringTable = messages;
    console.log(" messages ".cyan, messages.join("\n"));
    return response;
}
function makeServiceFault ( statusCode , messages ) { var response = new s . ServiceFault ( ) ; response . responseHeader . serviceResult = statusCode ; assert ( _ . isArray ( messages ) ) ; assert ( typeof messages [ 0 ] === "string" ) ; response . responseHeader . stringTable = messages ; console . log ( " messages " . cyan , messages . join ( "\n" ) ) ; return response ; }
construct a service Fault response
 @method makeServiceFault
 @param statusCode
 @param messages
construct a service Fault response @method makeServiceFault @param statusCode @param messages
//xx response.serviceDiagnostics.push( new DiagnosticInfo({ additionalInfo: messages.join("\n")}));