handling 404 stuff
doesn't take request if file doesn't exist or if the file type is not of the ones we currently serve.