Thank you for the detailed response, @BoZhang.
I am still not entirely clear on the actual response payload shape.
At this point, the caller does not have access to the HTTP status code. For successful requests, you will have access to the headers though (they will be under the
headers
prop of the resolved Promise)
From your reply above, it sounds like the response shape is something like
{
"headers": ...,
? // "body":
}
I am trying to get an invokeRemote
example working so I can test this out myself but I am struggling with this: invokeRemote throws Error: Resolver has no definition for 'undefined'