How do I create a 404 page?

I know people have asked before, but nothing has seemed to work, so how would I make a working 404 page for my website?

It depends what framework you’ve used to build your site and how it is configured, do you have a link to your project?