commit 11627b38bbbe1942f8ad2667bc8297478879c6bd
parent cc511b93bed1855e3c1dbfc9fca86c15fbbb0d22
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 26 Oct 2020 13:21:28 +0100
use correct HTTP status codes:
Diffstat:
3 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_keystate.c b/src/exchange/taler-exchange-httpd_keystate.c
@@ -2545,7 +2545,7 @@ TEH_handler_keys (const struct TEH_RequestHandler *rh,
{
/* Option not allowed by configuration */
return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
+ MHD_HTTP_FORBIDDEN,
TALER_EC_KEYS_TIMETRAVEL_FORBIDDEN,
NULL);
}
diff --git a/src/exchange/taler-exchange-httpd_refreshes_reveal.c b/src/exchange/taler-exchange-httpd_refreshes_reveal.c
@@ -461,7 +461,7 @@ refreshes_reveal_transaction (void *cls,
{
GNUNET_break_op (0);
*mhd_ret = TALER_MHD_reply_with_error (connection,
- MHD_HTTP_INTERNAL_SERVER_ERROR,
+ MHD_HTTP_BAD_REQUEST,
TALER_EC_REVEAL_AMOUNT_INSUFFICIENT,
NULL);
return GNUNET_DB_STATUS_HARD_ERROR;
diff --git a/src/exchangedb/test_exchangedb_denomkeys.c b/src/exchangedb/test_exchangedb_denomkeys.c
@@ -159,8 +159,7 @@ main (int argc,
(unsigned long long) start.abs_value_us);
GNUNET_asprintf (&revdir,
"%s/revocations/",
- tmpdir,
- TALER_EXCHANGEDB_DIR_DENOMINATION_KEYS);
+ tmpdir);
EXITIF (GNUNET_OK !=
TALER_EXCHANGEDB_denomination_key_write (tmpfile,
&dki));