diff options
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-products.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-products.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-products.c b/src/backend/taler-merchant-httpd_private-post-products.c index e77690bc..5b783519 100644 --- a/src/backend/taler-merchant-httpd_private-post-products.c +++ b/src/backend/taler-merchant-httpd_private-post-products.c @@ -136,7 +136,7 @@ TMH_private_post_products (const struct TMH_RequestHandler *rh, GNUNET_JSON_parse_free (spec); return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_PRODUCTS_POST_DB_START_ERROR, + TALER_EC_GENERIC_DB_START_FAILED, NULL); } qs = TMH_db->lookup_product (TMH_db->cls, @@ -173,7 +173,7 @@ TMH_private_post_products (const struct TMH_RequestHandler *rh, GNUNET_JSON_parse_free (spec); return TALER_MHD_reply_with_error (connection, MHD_HTTP_CONFLICT, - TALER_EC_PRODUCTS_POST_CONFLICT_PRODUCT_EXISTS, + TALER_EC_MERCHANT_PRIVATE_POST_PRODUCTS_CONFLICT_PRODUCT_EXISTS, product_id); } } @@ -200,8 +200,8 @@ retry: connection, MHD_HTTP_INTERNAL_SERVER_ERROR, (GNUNET_DB_STATUS_SOFT_ERROR == qs) - ? TALER_EC_PRODUCTS_POST_DB_COMMIT_SOFT_ERROR - : TALER_EC_PRODUCTS_POST_DB_COMMIT_HARD_ERROR, + ? TALER_EC_GENERIC_DB_SOFT_FAILURE + : TALER_EC_GENERIC_DB_COMMIT_FAILED, NULL); return TALER_MHD_reply_static (connection, MHD_HTTP_NO_CONTENT, |