Avoid throwing error on 404 (and return undefined)? #2349
Unanswered
enote-kane
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am calling some remote API to essentially get details related to some entity. However, that remote API may just not have any details registered and then returns a 404 as per HTTP standards.
What I actually want is to have this case handled gracefully (without throwing any error internally), so that I can - at best just use something like this:
Is that possible (without running into the handlers issue #2196 )?
Beta Was this translation helpful? Give feedback.
All reactions