diff options
author | priscilla <priscilla.huang@efrei.net> | 2022-12-08 09:46:30 -0500 |
---|---|---|
committer | priscilla <priscilla.huang@efrei.net> | 2022-12-08 09:48:14 -0500 |
commit | c903b08437ccb6109491ed5e0a9bcb835ab034ef (patch) | |
tree | 07e6bd59a03f81d5e14fd5424af28bcff366d25d /src/backend/taler-merchant-httpd_private-delete-webhooks-ID.c | |
parent | 705064978a7297965c55cc8582c1b40f69827bab (diff) |
update
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-delete-webhooks-ID.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-delete-webhooks-ID.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_private-delete-webhooks-ID.c b/src/backend/taler-merchant-httpd_private-delete-webhooks-ID.c index 6a8db79c..adf34ad8 100644 --- a/src/backend/taler-merchant-httpd_private-delete-webhooks-ID.c +++ b/src/backend/taler-merchant-httpd_private-delete-webhooks-ID.c @@ -58,7 +58,11 @@ TMH_private_delete_webhooks_ID (const struct TMH_RequestHandler *rh, MHD_HTTP_INTERNAL_SERVER_ERROR, TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE, "delete_webhook (soft)"); - + case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS: + return TALER_MHD_reply_with_error (connection, + MHD_HTTP_NOT_FOUND, + TALER_EC_MERCHANT_GENERIC_WEBHOOK_UNKNOWN, + hc->infix); case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT: return TALER_MHD_reply_static (connection, MHD_HTTP_NO_CONTENT, |