From 03615083589230803dd2a9d1fbfa5912f9472b70 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 22 May 2020 11:19:24 +0200 Subject: ecs --- src/include/taler_error_codes.h | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) (limited to 'src/include/taler_error_codes.h') diff --git a/src/include/taler_error_codes.h b/src/include/taler_error_codes.h index 255fdc2f3..901a89b7d 100644 --- a/src/include/taler_error_codes.h +++ b/src/include/taler_error_codes.h @@ -2009,6 +2009,13 @@ enum TALER_ErrorCode */ TALER_EC_RESERVES_POST_DB_COMMIT_HARD_ERROR = 2651, + /** + * The backend failed to fetch the requested information from the + * database. Returned with an HTTP status of + * #MHD_HTTP_INTERNAL_SERVER_ERROR. + */ + TALER_EC_GET_RESERVES_DB_LOOKUP_ERROR = 2652, + /** * The backend knows the instance that was supposed to support the * tip, but it was not configured for tipping (i.e. has no exchange @@ -2019,7 +2026,7 @@ enum TALER_ErrorCode /** * The reserve that was used to fund the tips has expired. Returned - * with an HTTP status code of #MHD_HTTP_NOT_FOUND. + * with an HTTP status code of #MHD_HTTP_GONE. */ TALER_EC_TIP_AUTHORIZE_RESERVE_EXPIRED = 2702, @@ -2146,6 +2153,18 @@ enum TALER_ErrorCode */ TALER_EC_TIP_QUERY_TIP_ID_UNKNOWN = 2720, + /** + * The reserve could not be deleted due to a database failure. + * Returned with HTTP status code #MHD_HTTP_INTERNAL_SERVER_ERROR. + */ + TALER_EC_RESERVES_DELETE_DB_HARD_FAILURE = 2721, + + /** + * The reserve could not be deleted because it is unknown. Returned + * with HTTP status code #MHD_HTTP_NOT_FOUND. + */ + TALER_EC_RESERVES_DELETE_NO_SUCH_RESERVE = 2722, + /** * The backend had trouble accessing the database to persist * information about enabling tips. Returned with an HTTP status code @@ -2236,6 +2255,18 @@ enum TALER_ErrorCode */ TALER_EC_TIP_PICKUP_UNBLIND_FAILURE = 2812, + /** + * Merchant failed to access its database to lookup the tip. Returned + * with a response code of #MHD_HTTP_INTERNAL_SERVER_ERROR. + */ + TALER_EC_GET_TIPS_DB_LOOKUP_ERROR = 2813, + + /** + * Merchant failed find the tip in its database. Returned with a + * response code of #MHD_HTTP_NOT_FOUND. + */ + TALER_EC_GET_TIPS_ID_UNKNOWN = 2814, + /** * We failed to fetch contract terms from our merchant database. The * response is provided with HTTP status code -- cgit v1.2.3