summaryrefslogtreecommitdiff
path: root/src/exchange
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-10-26 13:21:28 +0100
committerChristian Grothoff <christian@grothoff.org>2020-10-26 13:21:28 +0100
commit11627b38bbbe1942f8ad2667bc8297478879c6bd (patch)
tree41df05ae2d2f11c226bef59ac4db9838c747d266 /src/exchange
parentcc511b93bed1855e3c1dbfc9fca86c15fbbb0d22 (diff)
downloadexchange-11627b38bbbe1942f8ad2667bc8297478879c6bd.tar.gz
exchange-11627b38bbbe1942f8ad2667bc8297478879c6bd.tar.bz2
exchange-11627b38bbbe1942f8ad2667bc8297478879c6bd.zip
use correct HTTP status codes:
Diffstat (limited to 'src/exchange')
-rw-r--r--src/exchange/taler-exchange-httpd_keystate.c2
-rw-r--r--src/exchange/taler-exchange-httpd_refreshes_reveal.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd_keystate.c b/src/exchange/taler-exchange-httpd_keystate.c
index 7f0f20125..2d80d03a7 100644
--- 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
index 09d1a67b7..ddfaeef75 100644
--- 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;