Change file not not 500 error to 404 error