diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2022-10-04 11:32:10 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2022-10-04 11:32:10 +0200 |
commit | 424bbddaa36613eacccb18545128c8b1a4a11538 (patch) | |
tree | 2bbea8089bd2461c0e0af2b27e57a04794aac866 /src | |
parent | 64ebcadabb620b9092c04da4a59cda3a065d01d4 (diff) |
correct http reply
Diffstat (limited to 'src')
-rw-r--r-- | src/exchange/taler-exchange-httpd.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index 68fc9fb7..ffe5c1f5 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -1040,6 +1040,7 @@ handle_post_auditors (struct TEH_RequestContext *rc, root); } + /** * Handle GET "/extensions/..." requests. * @@ -1069,7 +1070,10 @@ handle_get_extensions (struct TEH_RequestContext *rc, } if (NULL == ext->http_get_handler) - return MHD_HTTP_NOT_IMPLEMENTED; + return TALER_MHD_reply_with_error (rc->connection, + MHD_HTTP_NOT_IMPLEMENTED, + TALER_EC_EXCHANGE_GENERIC_OPERATION_UNKNOWN, + "GET /extensions/$EXTENSION not supported"); return ext->http_get_handler ( rc->connection, @@ -1108,7 +1112,10 @@ handle_post_extensions (struct TEH_RequestContext *rc, } if (NULL == ext->http_post_handler) - return MHD_HTTP_NOT_IMPLEMENTED; + return TALER_MHD_reply_with_error (rc->connection, + MHD_HTTP_NOT_IMPLEMENTED, + TALER_EC_EXCHANGE_GENERIC_OPERATION_UNKNOWN, + "POST /extensions/$EXTENSION not supported"); return ext->http_post_handler ( rc->connection, |