use correct HTTP status codes:

This commit is contained in:
Christian Grothoff 2020-10-26 13:21:28 +01:00
parent cc511b93be
commit 11627b38bb
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
4 changed files with 4 additions and 5 deletions

@ -1 +1 @@
Subproject commit 78138eee72ade00788fbce032cb096f64fc1b9fb Subproject commit 32acd55e3d886322dab80bfbed4e73f590013472

View File

@ -2545,7 +2545,7 @@ TEH_handler_keys (const struct TEH_RequestHandler *rh,
{ {
/* Option not allowed by configuration */ /* Option not allowed by configuration */
return TALER_MHD_reply_with_error (connection, return TALER_MHD_reply_with_error (connection,
MHD_HTTP_BAD_REQUEST, MHD_HTTP_FORBIDDEN,
TALER_EC_KEYS_TIMETRAVEL_FORBIDDEN, TALER_EC_KEYS_TIMETRAVEL_FORBIDDEN,
NULL); NULL);
} }

View File

@ -461,7 +461,7 @@ refreshes_reveal_transaction (void *cls,
{ {
GNUNET_break_op (0); GNUNET_break_op (0);
*mhd_ret = TALER_MHD_reply_with_error (connection, *mhd_ret = TALER_MHD_reply_with_error (connection,
MHD_HTTP_INTERNAL_SERVER_ERROR, MHD_HTTP_BAD_REQUEST,
TALER_EC_REVEAL_AMOUNT_INSUFFICIENT, TALER_EC_REVEAL_AMOUNT_INSUFFICIENT,
NULL); NULL);
return GNUNET_DB_STATUS_HARD_ERROR; return GNUNET_DB_STATUS_HARD_ERROR;

View File

@ -159,8 +159,7 @@ main (int argc,
(unsigned long long) start.abs_value_us); (unsigned long long) start.abs_value_us);
GNUNET_asprintf (&revdir, GNUNET_asprintf (&revdir,
"%s/revocations/", "%s/revocations/",
tmpdir, tmpdir);
TALER_EXCHANGEDB_DIR_DENOMINATION_KEYS);
EXITIF (GNUNET_OK != EXITIF (GNUNET_OK !=
TALER_EXCHANGEDB_denomination_key_write (tmpfile, TALER_EXCHANGEDB_denomination_key_write (tmpfile,
&dki)); &dki));