### 🔖 Feature description For the error types exposed [here](https://appwrite.io/docs/response-codes#errorTypes) we should have a class with constants or an enum so we don't have to manually put the string in the code. ### 🎤 Pitch Let say I want to display some error message specifically to the user depending on the type, so instead of doing this: ```dart AppWriteException exception; if (exception.type == 'user_already_exists') { ... } ``` I could use the constant instead ```dart AppWriteException exception; if (exception.type == ErrorType.userAlreadyExists) { ... } ``` ### 👀 Have you spent some time to check if this issue has been raised before? - [X] I checked and didn't find similar issue ### 🏢 Have you read the Code of Conduct? - [X] I have read the [Code of Conduct](https://github.com/appwrite/appwrite/blob/HEAD/CODE_OF_CONDUCT.md)
Activity
joeyouss commentedon May 29, 2023
Hi - thank you for opening this
This really does sound helpful, keeping it open for gathering feedback.
eldadfux commentedon May 29, 2023
This is a really good idea. We'll be working on implementing this across all of our SDKs. Thank you for the suggestion @santigarcor!
santigarcor commentedon May 29, 2023
Is there anything I can do to help?
eldadfux commentedon May 29, 2023
Not sure yet, but if there will be we'll keep updates in this issue 👍