Hey guys, we are migrating from Ktor 1.6.x to 2.x....
# getting-started
j
Hey guys, we are migrating from Ktor 1.6.x to 2.x.x and we found that in the previous version of the lib any unsuccessful http response (e.g. 404 error) would throw a
ClientRequestException
. However in 2.x, it seems that unsuccessful http responses are not throwing exceptions anymore. This is forcing us to check which status code we get on the response and throw our own custom NetworkError. I am wondering if there is anyone here that can have information on why is this done like that, we are thinking that may have something to do with the newly added retry functionality.
j
Mega! thanks Robert.