This guide explains Zod's internal error handling system, and the various ways you can customize it for your purposes.