Prisma Error Codes: Complete reference of Prisma Client error codes (P2xxx series)… Searchable index with fixes, code examples, and official sources.
Prisma errors use a P-prefixed code. P2xxx codes are database-level failures passed up from the engine (P2002 is a unique violation, P2003 a foreign key), while P3xxx codes are migration and CLI failures that never reach your application code. Knowing which half you are in changes the fix: P2xxx means catching a typed error in a try/catch, P3xxx means repairing your migration history. Each page below shows the exact error text and the corresponding fix.