Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map errors to code #60

Open
vrongmeal opened this issue Mar 27, 2019 · 1 comment
Open

Map errors to code #60

vrongmeal opened this issue Mar 27, 2019 · 1 comment
Labels
enhancement New feature or request low-priority question Further information is requested

Comments

@vrongmeal
Copy link
Contributor

We can map multiple errors to their unique codes which will be useful to create the frontend since the error string returned is not refined. Marking this as question since we might need to discuss this whether to refine the response returned would be a better solution...?

Can be discussed later on since it's just an improvement over current code.

@vrongmeal vrongmeal added enhancement New feature or request question Further information is requested labels Mar 27, 2019
@twaritwaikar
Copy link
Member

Error codes are better than error messages for one more reason. People who can't read in English can easily understand and search for a number, rather than a statement in a language they don't understand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low-priority question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants