Return code of an API

Hi,
If I am using an API call in a server action, how do I check whether the API returned successfully or failed?

Many thanks!

Community Page
Last updated: