Changed handling of error exceptions in request class
Added passing connection to handling of errors in request class
Added building error message when throwing exception from response body