From acb4b8321ca48c8165d1f12a9b818f87e4418bec Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 22 Dec 2018 12:37:47 +0100 Subject: disambiguate error scenarios better --- src/include/taler_error_codes.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (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 2aff939f1..4123c435e 100644 --- a/src/include/taler_error_codes.h +++ b/src/include/taler_error_codes.h @@ -1316,6 +1316,28 @@ enum TALER_ErrorCode */ TALER_EC_PROPOSAL_ORDER_PARSE_ERROR = 2505, + /** + * The backend encountered an error while trying to find the + * existing proposal in the database. + * The response is provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + */ + TALER_EC_PROPOSAL_STORE_DB_ERROR_HARD = 2506, + + /** + * The backend encountered an error while trying to find the + * existing proposal in the database. + * The response is provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + */ + TALER_EC_PROPOSAL_STORE_DB_ERROR_SOFT = 2507, + + /** + * The backend encountered an error: the proposal already + * exists. + * The response is provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. + */ + TALER_EC_PROPOSAL_STORE_DB_ERROR_ALREADY_EXISTS = 2508, + + /** * The client specified an unknown instance for any of the /refund operations */ -- cgit v1.2.3