css - How to create a 404 page
迷茫
迷茫 2017-05-16 13:37:55
0
2
615

How to do 404 page and under what circumstances jump to 404 page

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
仅有的幸福

How to implement

koa

app.use(async ctx => {
    ctx.status = 404;
    ctx.body = await readSmallFile('./404.html');
});
洪涛

Status code 404 means NOT FOUND, probably

  • The address link is wrong;

  • The corresponding page cannot be found on the server;

Generally, you can design a separate page for 404; 404 not found is just a friendly reminder to the user that the page cannot be accessed.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template