in the ktor client, we can specify `expectSuccess ...
# ktor
l
in the ktor client, we can specify
expectSuccess = false
to control whetehr an exception should be thrown if the status is >= 300. can I also have more fine-grained control out-of-the-box? E.g. allowing 404 but throwing otherwise
r
Set
expectSuccess = false
then add your own
Feature
to replace the provided
ExpectSuccess
feature. See the code of the
ExpectSuccess
feature for how to implement your own
l
ok, I thought so. so no “out-of-thebox” 😕
e
Hi @lovis, the feature
response validation
can do it for you. It will be available in
1.2.0
❤️ 1