From 0a31cadb6c44cf697a6ebf318d6877986f87099c Mon Sep 17 00:00:00 2001 From: MS Date: Thu, 20 Jul 2023 12:56:32 +0200 Subject: Insufficient funds takes 409 Conflict. --- sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sandbox/src/main/kotlin/tech/libeufin') diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt index 23c24dbf..237ae5f1 100644 --- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt +++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt @@ -186,7 +186,7 @@ fun wireTransfer( demobank.name )) { logger.error("Account ${debitAccount.label} would surpass debit threshold. Rollback wire transfer") - throw SandboxError(HttpStatusCode.PreconditionFailed, "Insufficient funds") + throw SandboxError(HttpStatusCode.Conflict, "Insufficient funds") } val timeStamp = getUTCnow().toInstant().toEpochMilli() val transactionRef = getRandomString(8) -- cgit v1.2.3