lib/httphelper.js
function httpInternalError(req, res, err) {
    console.error(err);
    res.writeHead(500, { 'Content-Type': 'text/plain' });
    res.write(`Error 500 Internal server error: ${err}`);
    res.end();
}
function httpInternalError(req, res, err) {
    console.error(err);
    res.writeHead(500, { 'Content-Type': 'text/plain' });
    res.write(`Error 500 Internal server error: ${err}`);
    res.end();
}
function httpInternalError ( req , res , err ) { console . error ( err ) ; res . writeHead ( 500 , { 'Content-Type' : 'text/plain' } ) ; res . write ( ` ${ err } ` ) ; res . end ( ) ; }
Default implementation of InternalError HTTP response
@param {Object} req HTTP request
@param {Object} res HTTP response
@param {string} err Error message
Default implementation of InternalError HTTP response