How do you make a 404 page
Just as the title says how do i make a 404 page and link it to my website?
Ok, let's get technical.
This really depends on what you are using.
An HTML,CSS,JS repl's server is handled by repl.it itself, so as far as I know you have no control over it.
If you are to use a server like nodejs, you can check the request itself. If no matching file is found to be able to be served you can send a 404.
I use GoLang nowadays for backend. Golang is a bit harder. With Golang as far as I know you would to check if the directory exists and send custom data as a 404 if it doesn't.
Apache is possibly the easiest with their .htaccess in which you can link custom error pages in the case that the server returns an error (like 404).
In reality, you would have to manually check if the file exists (the file you are serving) and if not send a 404 along with some data.
That's how 404's are handled.
You have to make a seperate file. Like this:
Later on, you can import this html file and use it. I hope this helps!