exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 9be2a20c127e5e56a1f376787be7a50bcab2741f
parent 3340ddb38d5af7573f2715f39d847a80c052dea8
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue,  7 Apr 2026 22:30:14 +0200

fix status codes returned in auditor API to be consistent with EC codes

Diffstat:
Msrc/auditor/taler-auditor-httpd.c | 2+-
Msrc/auditor/taler-auditor-httpd_patch-generic-suppressed.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/auditor/taler-auditor-httpd.c b/src/auditor/taler-auditor-httpd.c @@ -1072,7 +1072,7 @@ handle_mhd_request (void *cls, if (NULL == auth) return TALER_MHD_reply_with_error ( connection, - MHD_HTTP_UNAUTHORIZED, + MHD_HTTP_BAD_REQUEST, TALER_EC_GENERIC_PARAMETER_MALFORMED, "'" RFC_8959_PREFIX "' prefix or 'Bearer' missing in 'Authorization' header"); diff --git a/src/auditor/taler-auditor-httpd_patch-generic-suppressed.c b/src/auditor/taler-auditor-httpd_patch-generic-suppressed.c @@ -59,7 +59,7 @@ TAH_patch_generic_suppressed ( GNUNET_break_op (0); return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - TALER_EC_AUDITOR_RESOURCE_NOT_FOUND, + TALER_EC_GENERIC_PARAMETER_MALFORMED, "no row id specified"); }