How to map internal errors to TRPCError types? - tRPC