modules/orionode/lib/api.js
function sendStatus(code, res){
	try{
		if (httpCodeMapping) {
			code = mapHttpStatusCode(code);
		}
		addStrictTransportHeaders(res);
		setResponseNoCache(res);
		return res.sendStatus(code);
	}catch(err){
		logger.error(res.req.originalUrl , err.message);
		throw err;
	}
}
function sendStatus(code, res){
	try{
		if (httpCodeMapping) {
			code = mapHttpStatusCode(code);
		}
		addStrictTransportHeaders(res);
		setResponseNoCache(res);
		return res.sendStatus(code);
	}catch(err){
		logger.error(res.req.originalUrl , err.message);
		throw err;
	}
}
function sendStatus ( code , res ) { try { if ( httpCodeMapping ) { code = mapHttpStatusCode ( code ) ; } addStrictTransportHeaders ( res ) ; setResponseNoCache ( res ) ; return res . sendStatus ( code ) ; } catch ( err ) { logger . error ( res . req . originalUrl , err . message ) ; throw err ; } }
Helper for send a status response
@param {Number} code
@param {HttpResponse} res
Helper for send a status response