commit 3dd66dac0d73ed69c9d7cab28091574795ae3f5a
parent 7a1c1c6ed948abfde5a2d5dc7c935ff15352a6bb
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 25 Mar 2026 23:51:47 +0100
return more precise status code
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_get-private-statistics-report-transactions.c b/src/backend/taler-merchant-httpd_get-private-statistics-report-transactions.c
@@ -637,9 +637,9 @@ TMH_private_get_statistics_report_transactions (
GNUNET_break_op (0);
return TALER_MHD_reply_with_error (
connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_GENERIC_PARAMETER_MALFORMED,
- "granularity");
+ MHD_HTTP_GONE,
+ TALER_EC_MERCHANT_PRIVATE_GET_STATISTICS_REPORT_GRANULARITY_UNAVAILABLE,
+ rctx->granularity);
}
} /* end handling granularity */