use correct HTTP status codes:
This commit is contained in:
parent
cc511b93be
commit
11627b38bb
@ -1 +1 @@
|
|||||||
Subproject commit 78138eee72ade00788fbce032cb096f64fc1b9fb
|
Subproject commit 32acd55e3d886322dab80bfbed4e73f590013472
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user