Feb 04, 2019 07:27 PM|mgebhard|LINK
Generally, when you send an HTTP request to a REST endpoint you know what to expect in return. If you do not know what to expect then how do you know if the result is an JSON formatted error or even another format like HTML?
It is certifiably possible to read the API response from HttpClient as a string then populate a generic JSON response but that's a bit risky for the same reason as above.
Can you explain at a high level what you are trying to do?
By the way, the response is in the HTTP body not the HTTP headers.