I\'m currently connecting to a third party API using a HttpURLConnection and this does work, but I\'m wondering on how to return the error from the API instead of the IOExceptio