aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-03-07 13:03:59 +0100
committerChristian Grothoff <christian@grothoff.org>2024-03-07 13:03:59 +0100
commit9dd3dcf1bbaad2a50d2a8ca8d1345508558ff455 (patch)
treee432ce932b20ebfc81f7a1c24cf006a65140c930
parentdeb5097c951894f06d571b5802c949df75c1ab7b (diff)
-change 406 to 400
-rw-r--r--src/backend/taler-merchant-httpd_post-orders-ID-pay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
index 9447441c..a1fdabec 100644
--- a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
+++ b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
@@ -2106,7 +2106,7 @@ check_payment_sufficient (struct PayContext *pc)
pay_end (pc,
TALER_MHD_reply_with_error (
pc->connection,
- MHD_HTTP_NOT_ACCEPTABLE,
+ MHD_HTTP_BAD_REQUEST,
TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_INSUFFICIENT_DUE_TO_FEES,
"contract not paid up due to fees (client may have calculated them badly)"));
return false;
@@ -2115,7 +2115,7 @@ check_payment_sufficient (struct PayContext *pc)
pay_end (pc,
TALER_MHD_reply_with_error (
pc->connection,
- MHD_HTTP_NOT_ACCEPTABLE,
+ MHD_HTTP_BAD_REQUEST,
TALER_EC_MERCHANT_POST_ORDERS_ID_PAY_PAYMENT_INSUFFICIENT,
"payment insufficient"));
return false;