Routing modified with __iserror (thanks @DaveRandom)