summaryrefslogtreecommitdiff
path: root/sandbox/src/main/kotlin/tech/libeufin
diff options
context:
space:
mode:
authorMS <ms@taler.net>2023-07-20 12:56:32 +0200
committerMS <ms@taler.net>2023-07-20 12:56:32 +0200
commit0a31cadb6c44cf697a6ebf318d6877986f87099c (patch)
tree5c0fa71c0e018201caa9d364bf233af2cac7bcd4 /sandbox/src/main/kotlin/tech/libeufin
parentd13f040a2acb7b832a959f94a215b5e25340ed5b (diff)
downloadlibeufin-0a31cadb6c44cf697a6ebf318d6877986f87099c.tar.gz
libeufin-0a31cadb6c44cf697a6ebf318d6877986f87099c.tar.bz2
libeufin-0a31cadb6c44cf697a6ebf318d6877986f87099c.zip
Insufficient funds takes 409 Conflict.
Diffstat (limited to 'sandbox/src/main/kotlin/tech/libeufin')
-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)