How to handle notFound errors based on route param validation? - TanStack