Is there any sort of mapping between Prisma error codes and http response codes? I'm finding myself writing way too many if statements.
Perhaps there is a way to capture all server/database related statements so I can respond 500?
r
Ryan
11/08/2021, 6:14 AM
@Yaakov 👋
Not at the moment unfortunately. You can create a general helper function though and add your if statements there directly.