summaryrefslogtreecommitdiff
path: root/src/auditor/taler-auditor-httpd_progress-del.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auditor/taler-auditor-httpd_progress-del.c')
-rw-r--r--src/auditor/taler-auditor-httpd_progress-del.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/auditor/taler-auditor-httpd_progress-del.c b/src/auditor/taler-auditor-httpd_progress-del.c
index bd374d8f6..ce9fcfe20 100644
--- a/src/auditor/taler-auditor-httpd_progress-del.c
+++ b/src/auditor/taler-auditor-httpd_progress-del.c
@@ -38,9 +38,8 @@ TAH_PROGRESS_handler_delete (struct TAH_RequestHandler *rh,
else
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_BAD_REQUEST,
- // TODO: not the correct ec
- TALER_EC_AUDITOR_DEPOSIT_CONFIRMATION_SIGNATURE_INVALID,
- "exchange signature invalid");
+ TALER_EC_AUDITOR_URI_MISSING_PATH_COMPONENT,
+ "uri is missing a trailing path component");
if (GNUNET_SYSERR ==
TAH_plugin->preflight (TAH_plugin->cls))
@@ -57,7 +56,7 @@ TAH_PROGRESS_handler_delete (struct TAH_RequestHandler *rh,
qs = TAH_plugin->delete_progress (TAH_plugin->cls,
row_id);
- if (0 > qs)
+ if (0 >= qs)
{
// goes in here if there was an error with the transaction
GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR == qs);
@@ -66,9 +65,8 @@ TAH_PROGRESS_handler_delete (struct TAH_RequestHandler *rh,
args[1]);
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_NOT_FOUND,
- // TODO: not the correct ec
- TALER_EC_AUDITOR_DEPOSIT_CONFIRMATION_SIGNATURE_INVALID,
- "exchange signature invalid");
+ TALER_EC_AUDITOR_RESOURCE_NOT_FOUND,
+ "the requested resource does not exist");
}