diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-11-08 00:50:16 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-11-08 00:50:16 +0100 |
commit | e42cf1a738aef2c2aee32997d157965b02e2fe0d (patch) | |
tree | 0332ba70640210f1e4119927e2e5b72005f57163 /src/backend/taler-merchant-httpd_private-patch-instances-ID.c | |
parent | 579938a29e1d1d4ada49ca4c1a8b0d18878974a9 (diff) | |
download | merchant-e42cf1a738aef2c2aee32997d157965b02e2fe0d.tar.gz merchant-e42cf1a738aef2c2aee32997d157965b02e2fe0d.tar.bz2 merchant-e42cf1a738aef2c2aee32997d157965b02e2fe0d.zip |
adjust error codes in merchant
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-patch-instances-ID.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-patch-instances-ID.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/taler-merchant-httpd_private-patch-instances-ID.c b/src/backend/taler-merchant-httpd_private-patch-instances-ID.c index 1534f62b..755e6f02 100644 --- a/src/backend/taler-merchant-httpd_private-patch-instances-ID.c +++ b/src/backend/taler-merchant-httpd_private-patch-instances-ID.c @@ -104,7 +104,7 @@ TMH_private_patch_instances_ID (const struct TMH_RequestHandler *rh, if (! json_is_array (payto_uris)) return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - TALER_EC_PATCH_INSTANCES_BAD_PAYTO_URIS, + TALER_EC_GENERIC_PAYTO_URI_MALFORMED, NULL); for (unsigned int i = 0; i<MAX_RETRIES; i++) { @@ -129,7 +129,7 @@ TMH_private_patch_instances_ID (const struct TMH_RequestHandler *rh, GNUNET_JSON_parse_free (spec); return TALER_MHD_reply_with_error (connection, MHD_HTTP_CONFLICT, - TALER_EC_PATCH_INSTANCES_BAD_CURRENCY, + TALER_EC_GENERIC_CURRENCY_MISMATCH, NULL); } if (GNUNET_OK != @@ -139,7 +139,7 @@ TMH_private_patch_instances_ID (const struct TMH_RequestHandler *rh, GNUNET_JSON_parse_free (spec); return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_PATCH_INSTANCES_DB_START_ERROR, + TALER_EC_GENERIC_DB_START_FAILED, NULL); } /* Check for equality of settings */ @@ -207,7 +207,7 @@ TMH_private_patch_instances_ID (const struct TMH_RequestHandler *rh, GNUNET_assert (NULL == wm_head); return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - TALER_EC_POST_INSTANCES_BAD_PAYTO_URIS, + TALER_EC_GENERIC_PAYTO_URI_MALFORMED, NULL); } if ((0 == strcasecmp (uri, @@ -221,7 +221,7 @@ TMH_private_patch_instances_ID (const struct TMH_RequestHandler *rh, GNUNET_assert (NULL == wm_head); return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - TALER_EC_POST_INSTANCES_BAD_PAYTO_URIS, + TALER_EC_GENERIC_PAYTO_URI_MALFORMED, str); } matches[i] = true; @@ -292,7 +292,7 @@ TMH_private_patch_instances_ID (const struct TMH_RequestHandler *rh, GNUNET_JSON_parse_free (spec); return TALER_MHD_reply_with_error (connection, MHD_HTTP_BAD_REQUEST, - TALER_EC_POST_INSTANCES_BAD_PAYTO_URIS, + TALER_EC_GENERIC_PAYTO_URI_MALFORMED, ad.payto_uri); } wm->active = true; @@ -336,7 +336,7 @@ giveup: GNUNET_JSON_parse_free (spec); return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_PATCH_INSTANCES_DB_COMMIT_ERROR, + TALER_EC_GENERIC_DB_COMMIT_FAILED, NULL); } /* Deactivate existing wire methods that were removed above */ |