summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_deposit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-11-23 21:03:05 +0100
committerChristian Grothoff <christian@grothoff.org>2019-11-23 21:03:05 +0100
commitcf6ba0c77196b77f5c54f0533ac1be3d1d5ee6d6 (patch)
tree542a985a04cc8a0e8edd3ef33438590cfd2e64ad /src/exchange/taler-exchange-httpd_deposit.c
parent7c11a822ba9ebce8a0dfe04510945ad36c0a0c71 (diff)
downloadexchange-cf6ba0c77196b77f5c54f0533ac1be3d1d5ee6d6.tar.gz
exchange-cf6ba0c77196b77f5c54f0533ac1be3d1d5ee6d6.tar.bz2
exchange-cf6ba0c77196b77f5c54f0533ac1be3d1d5ee6d6.zip
more refactoring for libtalermhd
Diffstat (limited to 'src/exchange/taler-exchange-httpd_deposit.c')
-rw-r--r--src/exchange/taler-exchange-httpd_deposit.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/exchange/taler-exchange-httpd_deposit.c b/src/exchange/taler-exchange-httpd_deposit.c
index 7e71dcaa..1db8d762 100644
--- a/src/exchange/taler-exchange-httpd_deposit.c
+++ b/src/exchange/taler-exchange-httpd_deposit.c
@@ -291,9 +291,10 @@ verify_and_execute_deposit (struct MHD_Connection *connection,
if (NULL == mks)
{
TALER_LOG_ERROR ("Lacking keys to operate\n");
- return TEH_RESPONSE_reply_internal_error (connection,
- TALER_EC_EXCHANGE_BAD_CONFIGURATION,
- "no keys");
+ return TALER_MHD_reply_with_error (connection,
+ MHD_HTTP_INTERNAL_SERVER_ERROR,
+ TALER_EC_EXCHANGE_BAD_CONFIGURATION,
+ "no keys");
}
dki = TEH_KS_denomination_key_lookup_by_hash (mks,
&deposit->coin.denom_pub_hash,
@@ -465,9 +466,10 @@ TEH_DEPOSIT_handler_deposit (struct TEH_RequestHandler *rh,
&emsg)))
{
GNUNET_JSON_parse_free (spec);
- res = TEH_RESPONSE_reply_external_error (connection,
- ec,
- emsg);
+ res = TALER_MHD_reply_with_error (connection,
+ MHD_HTTP_BAD_REQUEST,
+ ec,
+ emsg);
GNUNET_free (emsg);
return res;
}