if the path is not valid return 404