
Is this a good way to handle appwrite errors in nextjs server action ??

Instead of checking for status codes, I would utilize Appwrites error types to create better messages that are tailored to Appwrites exceptions.
https://appwrite.io/docs/advanced/platform/error-handling#common-error-types-and-suggested-messages
https://appwrite.io/docs/advanced/platform/response-codes#platform-errors

So for sign-up, sign-in i have to impliment all error types in a switch case??
Recommended threads
- Realtime stuck on pending
I'm hosting appwrite on a server where there's already nginx running and you can see how it's config looks for appwrite on attachted screenshot. I'm not getting...
- Appwrite Cors Errors after domain added
So I'm working on an app for my company and I've added in my domain name as the hostname for the project as well as for the custom domain. But I'm still getti...
- Appwrite custom domain verification fail...
So I've left enough time for the records to propagate and I've tried adding in a subdomain for the appwrite endpoint so as not to cause a clash with two CNAME r...
