diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-11-07 18:51:14 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-11-07 18:51:54 +0100 |
commit | 8d312562bf04eeb2afac53a2f24624f8e48529bd (patch) | |
tree | ff8ee7336406c4f8805ed9cee320acd105e77004 /src/exchange/taler-exchange-httpd_reserves_get.c | |
parent | dde5d38c4f895b53f4bd3423487573fc3e884351 (diff) | |
download | exchange-8d312562bf04eeb2afac53a2f24624f8e48529bd.tar.gz exchange-8d312562bf04eeb2afac53a2f24624f8e48529bd.tar.bz2 exchange-8d312562bf04eeb2afac53a2f24624f8e48529bd.zip |
adjust ECs
Diffstat (limited to 'src/exchange/taler-exchange-httpd_reserves_get.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_reserves_get.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/exchange/taler-exchange-httpd_reserves_get.c b/src/exchange/taler-exchange-httpd_reserves_get.c index 2272e6d03..a5ebaabf1 100644 --- a/src/exchange/taler-exchange-httpd_reserves_get.c +++ b/src/exchange/taler-exchange-httpd_reserves_get.c @@ -50,7 +50,7 @@ reply_reserve_history_success (struct MHD_Connection *connection, if (NULL == json_history) return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_RESERVE_STATUS_DB_ERROR, + TALER_EC_GENERIC_JSON_ALLOCATION_FAILURE, NULL); json_balance = TALER_JSON_from_amount (&balance); return TALER_MHD_reply_json_pack (connection, @@ -142,7 +142,7 @@ TEH_handler_reserves_get (const struct TEH_RequestHandler *rh, GNUNET_break_op (0); return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - TALER_EC_RESERVES_INVALID_RESERVE_PUB, + TALER_EC_MERCHANT_GENERIC_RESERVE_PUB_MALFORMED, args[0]); } rsc.rh = NULL; @@ -158,7 +158,7 @@ TEH_handler_reserves_get (const struct TEH_RequestHandler *rh, if (NULL == rsc.rh) return TALER_MHD_reply_with_error (connection, MHD_HTTP_NOT_FOUND, - TALER_EC_RESERVE_STATUS_UNKNOWN, + TALER_EC_EXCHANGE_RESERVES_GET_STATUS_UNKNOWN, args[0]); mhd_ret = reply_reserve_history_success (connection, rsc.rh); |