webhub.js
function fail(status, description, response) {
	let body = status + ' ' + description;
	console.log(body);
	response.writeHead(status, {
		'Content-Type': 'text/plain',
		'Access-Control-Allow-Origin': '*',
		'Content-Length': body.length
	});

	response.write(body);
	response.end();
}
function fail(status, description, response) {
	let body = status + ' ' + description;
	console.log(body);
	response.writeHead(status, {
		'Content-Type': 'text/plain',
		'Access-Control-Allow-Origin': '*',
		'Content-Length': body.length
	});

	response.write(body);
	response.end();
}
function fail ( status , description , response ) { let body = status + ' ' + description ; console . log ( body ) ; response . writeHead ( status , { 'Content-Type' : 'text/plain' , 'Access-Control-Allow-Origin' : '*' , 'Content-Length' : body . length } ) ; response . write ( body ) ; response . end ( ) ; }
helper for http server
helper for http server