(OFBIZ-10281)
When you call the HttpClient on Rest API on url that return you an error, the HttpClient failed to give you the error stream:
callResult = restClient.getStream();
If the flow is an error in the catch block with the line
in = con.getInputStream();
that return a FileNotFoundException
To solve if, if the connexion is an instance of HttpURLConnection we resolve this error inputStream contains the error message
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1827212 13f79535-47bb-0310-9956-ffa450edef68