RFC: make expected 404's easier to handle #1485
AEnterprise
started this conversation in
Development & RFCs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On many endpoints getting a 404 is normal and expected (getting a member, user, invite, ...). There are many cases where these will give you a 404 without anything being broken.
This can simply be because the user isn't on the server (anymore), the invite code provided to you by the user isn't valid, ....
Right now if you want to handle these gracefully you need to start wrapping each one of these calls and do several layers of error info parsing to figure out if this was a 404 or a generic failure. So i'm proposing the following 2 changes to make these much more sane to deal with for lib consumers:
Beta Was this translation helpful? Give feedback.
All reactions