fn map_response(status: u16, raw: &Bytes) -> Result<MappedResponse, String>Expand description
Maps an OpenWhisk activation reply into a (status, headers, body) triple.
An empty body passes the transport status/body through untouched. A
well-formed JSON envelope may override the status via statusCode, set
response headers, and provide body (string or nested JSON); when
statusCode/body are absent the transport status / raw envelope are used.
A non-JSON, non-empty body is an error (mapped to 503 by the caller).