authorizer
authorizer copied to clipboard
Streamline error messages
Feature Description
We are returning the errors that we get from a database or any third-party service. Instead, we would like to streamline this process and make sure error messages can be easily translated for i18n purposes.
Describe the solution you'd like
- Create common util to throw errors for incorrect data
- Create common util to throw errors for server error
Describe alternatives you've considered
Additional context
Hi @lakhansamani This looks like an interesting yet easy refactor. Is this open to contribution? If so I would want to contribute.