``` IO { when (response.status) { ...
# arrow
p
Copy code
IO {
    when (response.status) {
                        InternalServerError -> throw AccountsGatewayException("Failed to get info for notification_id ${notificationId.value} on account ${accountId.value}. ${response.status.description}")
                        Gone -> throw NotificationDeletedException()
                    }
}.bind()