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

猜你喜欢

转载自www.cnblogs.com/cn2758/p/10197602.html