I have a React Hook which is used in several forms to get data from an API call. The target URL is defined using parameters to the hook. The returned object could be one of