diff options
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-instances.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-instances.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-instances.c b/src/backend/taler-merchant-httpd_private-post-instances.c index 1a9d2b27..1cd1a0bb 100644 --- a/src/backend/taler-merchant-httpd_private-post-instances.c +++ b/src/backend/taler-merchant-httpd_private-post-instances.c @@ -189,8 +189,8 @@ TMH_private_post_instances (const struct TMH_RequestHandler *rh, GNUNET_JSON_parse_free (spec); return TALER_MHD_reply_with_error (connection, MHD_HTTP_CONFLICT, - TALER_EC_POST_INSTANCES_BAD_CURRENCY, - NULL); + TALER_EC_GENERIC_CURRENCY_MISMATCH, + TMH_currency); } { @@ -240,7 +240,7 @@ TMH_private_post_instances (const struct TMH_RequestHandler *rh, GNUNET_JSON_parse_free (spec); return TALER_MHD_reply_with_error (connection, MHD_HTTP_CONFLICT, - TALER_EC_POST_INSTANCES_ALREADY_EXISTS, + TALER_EC_MERCHANT_PRIVATE_POST_INSTANCES_ALREADY_EXISTS, is.id); } } @@ -338,7 +338,7 @@ TMH_private_post_instances (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, NULL); } } @@ -369,7 +369,7 @@ TMH_private_post_instances (const struct TMH_RequestHandler *rh, free_mi (mi); return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_POST_INSTANCES_DB_START_ERROR, + TALER_EC_GENERIC_DB_START_FAILED, NULL); } qs = TMH_db->insert_instance (TMH_db->cls, @@ -424,7 +424,7 @@ retry: free_mi (mi); return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, - TALER_EC_POST_INSTANCES_DB_COMMIT_ERROR, + TALER_EC_GENERIC_DB_COMMIT_FAILED, NULL); } /* Finally, also update our running process */ |