mohsenbostan / nestjs-grpc-exceptions

NestJS gRPC Exceptions Library ⚡️
MIT License
31 stars 11 forks source link

refactor: Create grpc-exceptions-map.ts for GRPC_EXCEPTION_FROM_HTTP #10

Closed youngkiu closed 3 months ago

youngkiu commented 3 months ago

Of course, I use the nestjs-grpc-exceptions package, I often cite the mapping data(http-codes-map.ts). However, the reverse map did not exist along with http-codes-map.ts, so using it as introduction material was disappointing. From a code perspective, it seems better to have separate forward and reverse maps.