summaryrefslogtreecommitdiff
path: root/sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt')
-rw-r--r--sandbox/src/main/kotlin/tech/libeufin/sandbox/bankAccount.kt2
1 files changed, 1 insertions, 1 deletions
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)