search

Home  >  Q&A  >  body text

css - How to create a 404 page

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

迷茫迷茫2796 days ago665

reply all(2)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-16 13:39:55

    How to implement

    koa

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

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 13:39:55

    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.

    reply
    0
  • Cancelreply