Next.js · Server Actions · Senior · Scenario
How do you handle validation errors in Server Actions?
Short Interview Answer
Return structured error objects / useActionState; don't only throw opaque errors.
Detailed Explanation
Map field errors for UX. Log unexpected exceptions. Keep messages safe for end users.