app.use('/app2.js' ,function(req, res) { res.writeHead(503, 'Current password does not match', {'content-type' : 'text/plain'}); res.end('Current value does not match'); });