API route error handling - TanStack