index.js
function respondText(res, code, text) {
  res.statusCode = code;
  res.setHeader('Content-Type', 'text/plain');
  return res.end(text.toString());
}
function respondText(res, code, text) {
  res.statusCode = code;
  res.setHeader('Content-Type', 'text/plain');
  return res.end(text.toString());
}
function respondText ( res , code , text ) { res . statusCode = code ; res . setHeader ( 'Content-Type' , 'text/plain' ) ; return res . end ( text . toString ( ) ) ; }
Send an error response in plain-text.
Send an error response in plain - text .