Is there any sort of mapping between Prisma error ...
# prisma-client
y
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
@Yaakov 👋 Not at the moment unfortunately. You can create a general helper function though and add your if statements there directly.
y
Thank you!