aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine A <>2023-10-31 11:26:57 +0100
committerAntoine A <>2023-10-31 12:14:19 +0100
commit9d7d13078ab0270ed300e9ff1b873210f00478a8 (patch)
treed53159633d04b5a7c775645c193cf6caca69ca01
parentc7d16f850c5cd09a2f03da97ba87978ca0ba7eed (diff)
downloadgana-9d7d13078ab0270ed300e9ff1b873210f00478a8.tar.gz
gana-9d7d13078ab0270ed300e9ff1b873210f00478a8.zip
more libeufin-bank error codes
-rw-r--r--gnu-taler-error-codes/kt.template2
-rw-r--r--gnu-taler-error-codes/registry.rec49
-rw-r--r--gnu-taler-error-codes/taler_error_codes.rst152
3 files changed, 191 insertions, 12 deletions
diff --git a/gnu-taler-error-codes/kt.template b/gnu-taler-error-codes/kt.template
index 9934b7e..9470655 100644
--- a/gnu-taler-error-codes/kt.template
+++ b/gnu-taler-error-codes/kt.template
@@ -5,4 +5,4 @@
5 * Returned with an HTTP status code of #MHD_HTTP_{{HttpStatus_Identifier}} ({{HttpStatus_Value}}). 5 * Returned with an HTTP status code of #MHD_HTTP_{{HttpStatus_Identifier}} ({{HttpStatus_Value}}).
6 * (A value of 0 indicates that the error is generated client-side). 6 * (A value of 0 indicates that the error is generated client-side).
7 */ 7 */
8 TALER_EC_{{Name}}({{Value}}), 8 {{Name}}({{Value}}),
diff --git a/gnu-taler-error-codes/registry.rec b/gnu-taler-error-codes/registry.rec
index 4fd6b04..f0fdc56 100644
--- a/gnu-taler-error-codes/registry.rec
+++ b/gnu-taler-error-codes/registry.rec
@@ -2191,6 +2191,55 @@ Name: BANK_RESERVED_USERNAME_CONFLICT
2191Description: The client tried to register a new account under a reserved username (like 'admin' for example). 2191Description: The client tried to register a new account under a reserved username (like 'admin' for example).
2192HttpStatus: 409 2192HttpStatus: 409
2193 2193
2194Value: 5121
2195Name: BANK_REGISTER_USERNAME_REUSE
2196Description: The client tried to register a new account with an username already in use.
2197HttpStatus: 409
2198
2199Value: 5122
2200Name: BANK_REGISTER_PAYTO_URI_REUSE
2201Description: The client tried to register a new account with a payto:// URI already in use.
2202HttpStatus: 409
2203
2204Value: 5123
2205Name: BANK_ACCOUNT_BALANCE_NOT_ZERO
2206Description: The client tried to delete an account with a non null balance.
2207HttpStatus: 409
2208
2209Value: 5124
2210Name: BANK_UNKNOWN_CREDITOR
2211Description: The client tried to create a transaction or an operation that credit an unknown account.
2212HttpStatus: 409
2213
2214Value: 5125
2215Name: BANK_UNKNOWN_DEBTOR
2216Description: The client tried to create a transaction or an operation that debit an unknown account.
2217HttpStatus: 409
2218
2219Value: 5126
2220Name: BANK_ACCOUNT_IS_EXCHANGE
2221Description: The client tried to perform an action prohibited for exchange accounts.
2222HttpStatus: 409
2223
2224Value: 5127
2225Name: BANK_ACCOUNT_IS_NOT_EXCHANGE
2226Description: The client tried to perform an action reserved for exchange accounts.
2227HttpStatus: 409
2228
2229Value: 5128
2230Name: BANK_BAD_CONVERSION
2231Description: Received currency conversion is wrong.
2232HttpStatus: 409
2233
2234Value: 5129
2235Name: BANK_MISSING_TAN_INFO
2236Description: The account referenced in this operation is missing tan info for the chosen channel.
2237HttpStatus: 409
2238
2239Value: 5130
2240Name: BANK_CONFIRM_INCOMPLETE
2241Description: The client attempted to confirm a transaction with incomplete info.
2242HttpStatus: 409
2194 2243
2195 2244
2196# 6000 - 6999: Reserved for sync 2245# 6000 - 6999: Reserved for sync
diff --git a/gnu-taler-error-codes/taler_error_codes.rst b/gnu-taler-error-codes/taler_error_codes.rst
index 8715f2b..d35b523 100644
--- a/gnu-taler-error-codes/taler_error_codes.rst
+++ b/gnu-taler-error-codes/taler_error_codes.rst
@@ -185,11 +185,21 @@ Description The reserve public key given as part of a /reserves/ endpoin
185 185
186 186
187=================== =========================================================== 187=================== ===========================================================
188 TALER_EC_GENERIC_COMPRESSION_INVALID
189-------------------------------------------------------------------------------
190Value 28
191HTTP Status Code 400
192Description The body in the request could not be decompressed by the server.
193=================== ===========================================================
194
195
196
197=================== ===========================================================
188 TALER_EC_GENERIC_CURRENCY_MISMATCH 198 TALER_EC_GENERIC_CURRENCY_MISMATCH
189------------------------------------------------------------------------------- 199-------------------------------------------------------------------------------
190Value 30 200Value 30
191HTTP Status Code 400 201HTTP Status Code 400
192Description The currencies involved in the operation do not match. 202Description The currency involved in the operation is not acceptable for this backend.
193=================== =========================================================== 203=================== ===========================================================
194 204
195 205
@@ -255,6 +265,16 @@ Description The service refused the request as the given authorization t
255 265
256 266
257=================== =========================================================== 267=================== ===========================================================
268 TALER_EC_GENERIC_FORBIDDEN
269-------------------------------------------------------------------------------
270Value 44
271HTTP Status Code 403
272Description The service refused the request due to lack of proper rights on the resource.
273=================== ===========================================================
274
275
276
277=================== ===========================================================
258 TALER_EC_GENERIC_DB_SETUP_FAILED 278 TALER_EC_GENERIC_DB_SETUP_FAILED
259------------------------------------------------------------------------------- 279-------------------------------------------------------------------------------
260Value 50 280Value 50
@@ -2765,6 +2785,16 @@ Description The wire hash was malformed.
2765 2785
2766 2786
2767=================== =========================================================== 2787=================== ===========================================================
2788 TALER_EC_MERCHANT_GENERIC_CURRENCY_MISMATCH
2789-------------------------------------------------------------------------------
2790Value 2024
2791HTTP Status Code 409
2792Description The currency specified in the operation does not work with the current state of the given resource.
2793=================== ===========================================================
2794
2795
2796
2797=================== ===========================================================
2768 TALER_EC_MERCHANT_GET_ORDERS_EXCHANGE_TRACKING_FAILURE 2798 TALER_EC_MERCHANT_GET_ORDERS_EXCHANGE_TRACKING_FAILURE
2769------------------------------------------------------------------------------- 2799-------------------------------------------------------------------------------
2770Value 2100 2800Value 2100
@@ -3935,16 +3965,6 @@ Description A too big number was used (as value and/or fraction) to inst
3935 3965
3936 3966
3937=================== =========================================================== 3967=================== ===========================================================
3938 TALER_EC_BANK_LOGIN_FAILED
3939-------------------------------------------------------------------------------
3940Value 5105
3941HTTP Status Code 403
3942Description Could not login for the requested operation.
3943=================== ===========================================================
3944
3945
3946
3947=================== ===========================================================
3948 TALER_EC_BANK_UNKNOWN_ACCOUNT 3968 TALER_EC_BANK_UNKNOWN_ACCOUNT
3949------------------------------------------------------------------------------- 3969-------------------------------------------------------------------------------
3950Value 5106 3970Value 5106
@@ -4085,6 +4105,116 @@ Description The client attempted to confirm a withdrawal operation befor
4085 4105
4086 4106
4087=================== =========================================================== 4107=================== ===========================================================
4108 TALER_EC_BANK_RESERVED_USERNAME_CONFLICT
4109-------------------------------------------------------------------------------
4110Value 5120
4111HTTP Status Code 409
4112Description The client tried to register a new account under a reserved username (like 'admin' for example).
4113=================== ===========================================================
4114
4115
4116
4117=================== ===========================================================
4118 TALER_EC_BANK_REGISTER_USERNAME_REUSE
4119-------------------------------------------------------------------------------
4120Value 5121
4121HTTP Status Code 409
4122Description The client tried to register a new account with an username already in use.
4123=================== ===========================================================
4124
4125
4126
4127=================== ===========================================================
4128 TALER_EC_BANK_REGISTER_PAYTO_URI_REUSE
4129-------------------------------------------------------------------------------
4130Value 5122
4131HTTP Status Code 409
4132Description The client tried to register a new account with a payto:// URI already in use.
4133=================== ===========================================================
4134
4135
4136
4137=================== ===========================================================
4138 TALER_EC_BANK_ACCOUNT_BALANCE_NOT_ZERO
4139-------------------------------------------------------------------------------
4140Value 5123
4141HTTP Status Code 409
4142Description The client tried to delete an account with a non null balance.
4143=================== ===========================================================
4144
4145
4146
4147=================== ===========================================================
4148 TALER_EC_BANK_UNKNOWN_CREDITOR
4149-------------------------------------------------------------------------------
4150Value 5124
4151HTTP Status Code 409
4152Description The client tried to create a transaction or an operation that credit an unknown account.
4153=================== ===========================================================
4154
4155
4156
4157=================== ===========================================================
4158 TALER_EC_BANK_UNKNOWN_DEBTOR
4159-------------------------------------------------------------------------------
4160Value 5125
4161HTTP Status Code 409
4162Description The client tried to create a transaction or an operation that debit an unknown account.
4163=================== ===========================================================
4164
4165
4166
4167=================== ===========================================================
4168 TALER_EC_BANK_ACCOUNT_IS_EXCHANGE
4169-------------------------------------------------------------------------------
4170Value 5126
4171HTTP Status Code 409
4172Description The client tried to perform an action prohibited for exchange accounts.
4173=================== ===========================================================
4174
4175
4176
4177=================== ===========================================================
4178 TALER_EC_BANK_ACCOUNT_IS_NOT_EXCHANGE
4179-------------------------------------------------------------------------------
4180Value 5127
4181HTTP Status Code 409
4182Description The client tried to perform an action reserved for exchange accounts.
4183=================== ===========================================================
4184
4185
4186
4187=================== ===========================================================
4188 TALER_EC_BANK_BAD_CONVERSION
4189-------------------------------------------------------------------------------
4190Value 5128
4191HTTP Status Code 409
4192Description Received currency conversion is wrong.
4193=================== ===========================================================
4194
4195
4196
4197=================== ===========================================================
4198 TALER_EC_BANK_MISSING_TAN_INFO
4199-------------------------------------------------------------------------------
4200Value 5129
4201HTTP Status Code 409
4202Description The account referenced in this operation is missing tan info for the chosen channel.
4203=================== ===========================================================
4204
4205
4206
4207=================== ===========================================================
4208 TALER_EC_BANK_CONFIRM_INCOMPLETE
4209-------------------------------------------------------------------------------
4210Value 5130
4211HTTP Status Code 409
4212Description The client attempted to confirm a transaction with incomplete info.
4213=================== ===========================================================
4214
4215
4216
4217=================== ===========================================================
4088 TALER_EC_SYNC_ACCOUNT_UNKNOWN 4218 TALER_EC_SYNC_ACCOUNT_UNKNOWN
4089------------------------------------------------------------------------------- 4219-------------------------------------------------------------------------------
4090Value 6100 4220Value 6100