error check for nonexistant route