respond.js
function sendSPrintFError(res, errorArray, code, internalCode) {
	var obj = { success: false };
	obj[res ? 'description' : 'reason'] = errorArray;
	return sendError(res, obj, code, internalCode);
}
function sendSPrintFError(res, errorArray, code, internalCode) {
	var obj = { success: false };
	obj[res ? 'description' : 'reason'] = errorArray;
	return sendError(res, obj, code, internalCode);
}
function sendSPrintFError ( res , errorArray , code , internalCode ) { var obj = { success : false } ; obj [ res ? 'description' : 'reason' ] = errorArray ; return sendError ( res , obj , code , internalCode ) ; }
Sends a SPrintF formatted error to the user. Otherwise, behaves the same as sendStringError.
@param res Optional Express Response object.
@param errorArray The first element should be a string; subsequent args are formatted in to the first string.
@param code The HTTP Status code to send (like 404, 403, etc).
@param internalCode An optional internal code to also send to the client. This is useful for programmatic use of the API so we can do non-string-based comparisons.
@return {*} If no res is provided, the error JSON object will be returned; otherwise, the results of res.send are returned.
Sends a SPrintF formatted error to the user . Otherwise behaves the same as sendStringError .