commit 0a31cadb6c44cf697a6ebf318d6877986f87099c
parent d13f040a2acb7b832a959f94a215b5e25340ed5b
Author: MS <ms@taler.net>
Date: Thu, 20 Jul 2023 12:56:32 +0200
Insufficient funds takes 409 Conflict.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)