commit acb4b8321ca48c8165d1f12a9b818f87e4418bec
parent 7b10ad08517ea0bd9a8772e046c0671260bcf73f
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 22 Dec 2018 12:37:47 +0100
disambiguate error scenarios better
Diffstat:
1 file changed, 22 insertions(+), 0 deletions(-)
diff --git a/src/include/taler_error_codes.h b/src/include/taler_error_codes.h
@@ -1317,6 +1317,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
*/
TALER_EC_REFUND_INSTANCE_UNKNOWN = 2600,