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

 

posted @ 2018-12-29 19:05  ryanpark  阅读(999)  评论(0编辑  收藏  举报