aaa 6

Programming Learning Diary

404, 500 error handling

페이지 정보

작성일 21-01-07 00:37

본문

app.use( (req, res, _ )=>{
res.status(400).render( 'common/404.html' );
// res.status(500).render( 'common/500.html' );
});
app.use( (req, res, _ )=>{
// res.status(400).render( 'common/404.html' );
res.status(500).render( 'common/500.html' );
});

댓글목록

등록된 댓글이 없습니다.