nodemailer / wildduck

Opinionated email server
https://wildduck.email/
European Union Public License 1.2
1.9k stars 266 forks source link

Api error codes for internacionalization #211

Closed ramiroaisen closed 4 years ago

ramiroaisen commented 4 years ago

Hi there! Do you have a list of api error codes? (to generate user-facing messages that we can translate) Thanks!

andris9 commented 4 years ago

There is no list. A lot of errors are dynamic, so not easy to translate either. I've tried to attach a code value to each of the error responses so you could generate a translation based on that code, eg. in case of UserNotFound you could use "Provided user was not found" or something like that. Though there is not list for these codes either, you'd have to grep these from the code.

louis-lau commented 4 years ago

@andris9 Is this list not up to date? https://docs.wildduck.email/#/api-error-codes

andris9 commented 4 years ago

I guess it more or less is up to date. I just forgot that this list exists 🙄

ramiroaisen commented 4 years ago

Yeah a saw that list right after posting this issue.. great!