-
-
Save thomaskioko/1dc0863c9cb09097ebd8c2589b2aa8d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
when (statusCode) { | |
in 300..399 -> throw RedirectResponseException(response) | |
in 400..499 -> throw ClientRequestException(response) | |
in 500..599 -> throw ServerResponseException(response) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment