Implement error.tsx for graceful error handling with a user-facing retry action, customize not-found.tsx for 404s, and understand how error boundaries bubble through the route tree.