lib/logger.js
function getStatus (res) {
		let status;
		const statusCode = res.statusCode;
		if (statusCode) {
			status = Math.floor(statusCode / 100) * 100;
		}
		switch (status) {
			case 100:
			case 200:
			case 300:
				return 'success';
			default:
				return 'failure';
		}
	}
function getStatus (res) {
		let status;
		const statusCode = res.statusCode;
		if (statusCode) {
			status = Math.floor(statusCode / 100) * 100;
		}
		switch (status) {
			case 100:
			case 200:
			case 300:
				return 'success';
			default:
				return 'failure';
		}
	}
function getStatus ( res ) { let status ; const statusCode = res . statusCode ; if ( statusCode ) { status = Math . floor ( statusCode / 100 ) * 100 ; } switch ( status ) { case 100 : case 200 : case 300 : return 'success' ; default : return 'failure' ; } }
derive the status string from the status code
@param  {Object} res express res object
@return {string}     success or error string
derive the status string from the status code