diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-06-04 15:19:57 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-06-04 15:19:57 +0200 |
commit | 93943bdb5b6ab43b6bcfdb721f67674cc89250d6 (patch) | |
tree | 17e98a062ba886f1389ce99f5cb2fecb242a5f76 /src/exchange/taler-exchange-httpd_withdraw.c | |
parent | 3e99c50c0f940fda34585225c38c9014cc1110d0 (diff) | |
download | exchange-93943bdb5b6ab43b6bcfdb721f67674cc89250d6.tar.gz exchange-93943bdb5b6ab43b6bcfdb721f67674cc89250d6.tar.bz2 exchange-93943bdb5b6ab43b6bcfdb721f67674cc89250d6.zip |
add KYC errors for p2p payments
Diffstat (limited to 'src/exchange/taler-exchange-httpd_withdraw.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_withdraw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/exchange/taler-exchange-httpd_withdraw.c b/src/exchange/taler-exchange-httpd_withdraw.c index ca4ed9a71..1d48045b6 100644 --- a/src/exchange/taler-exchange-httpd_withdraw.c +++ b/src/exchange/taler-exchange-httpd_withdraw.c @@ -133,7 +133,7 @@ withdraw_transaction (void *cls, { *mhd_ret = TALER_MHD_reply_with_error (connection, MHD_HTTP_NOT_FOUND, - TALER_EC_EXCHANGE_WITHDRAW_RESERVE_UNKNOWN, + TALER_EC_EXCHANGE_GENERIC_RESERVE_UNKNOWN, NULL); return GNUNET_DB_STATUS_HARD_ERROR; } @@ -153,7 +153,7 @@ withdraw_transaction (void *cls, /* Wallet-to-wallet payments _always_ require KYC */ *mhd_ret = TALER_MHD_REPLY_JSON_PACK ( connection, - MHD_HTTP_ACCEPTED, + MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS, GNUNET_JSON_pack_uint64 ("payment_target_uuid", wc->kyc.payment_target_uuid)); return GNUNET_DB_STATUS_HARD_ERROR; @@ -188,7 +188,7 @@ withdraw_transaction (void *cls, { *mhd_ret = TALER_MHD_REPLY_JSON_PACK ( connection, - MHD_HTTP_ACCEPTED, + MHD_HTTP_UNAVAILABLE_FOR_LEGAL_REASONS, GNUNET_JSON_pack_uint64 ("payment_target_uuid", wc->kyc.payment_target_uuid)); return GNUNET_DB_STATUS_HARD_ERROR; |