Join Slack
Powered by
When using Ktor Client I expect that it will throw...
# ktor
e
electrolobzik
01/11/2024, 11:30 AM
When using Ktor Client I expect that it will throw exception on response codes 4xx, but it tries to deserialise the response instead. Is it possible to configure this behaviour?
s
Sam
01/11/2024, 11:31 AM
https://ktor.io/docs/response-validation.html#default
🔥 1
e
electrolobzik
01/11/2024, 11:32 AM
Ah, so simple, thanks! Missed that.
4
Views
Open in Slack
Previous
Next