1. 程式人生 > >記錄:express返回自定義http狀態嗎

記錄:express返回自定義http狀態嗎

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');
});