commit d4c5ac5e7f15e68d84a16b836d9cd45929a0e7ce
parent 9b7369537721d667cc8de680d4331b97f9557739
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 24 Sep 2025 21:30:39 +0200
404 not 204 on not found, as per spec
Diffstat:
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/donau/donau-httpd_charity_get.c b/src/donau/donau-httpd_charity_get.c
@@ -74,12 +74,11 @@ DH_handler_charity_get (
TALER_EC_GENERIC_DB_FETCH_FAILED,
NULL);
case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
- return TALER_MHD_reply_static (
+ return TALER_MHD_reply_with_error (
rc->connection,
- MHD_HTTP_NO_CONTENT,
- NULL,
- NULL,
- 0);
+ MHD_HTTP_NOT_FOUND,
+ TALER_EC_DONAU_CHARITY_NOT_FOUND,
+ args[0]);
break;
case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
break;