diff options
author | Antoine A <> | 2023-10-31 11:26:57 +0100 |
---|---|---|
committer | Antoine A <> | 2023-10-31 12:14:19 +0100 |
commit | 9d7d13078ab0270ed300e9ff1b873210f00478a8 (patch) | |
tree | d53159633d04b5a7c775645c193cf6caca69ca01 | |
parent | c7d16f850c5cd09a2f03da97ba87978ca0ba7eed (diff) | |
download | gana-9d7d13078ab0270ed300e9ff1b873210f00478a8.tar.gz gana-9d7d13078ab0270ed300e9ff1b873210f00478a8.zip |
more libeufin-bank error codes
-rw-r--r-- | gnu-taler-error-codes/kt.template | 2 | ||||
-rw-r--r-- | gnu-taler-error-codes/registry.rec | 49 | ||||
-rw-r--r-- | gnu-taler-error-codes/taler_error_codes.rst | 152 |
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 | |||
2191 | Description: The client tried to register a new account under a reserved username (like 'admin' for example). | 2191 | Description: The client tried to register a new account under a reserved username (like 'admin' for example). |
2192 | HttpStatus: 409 | 2192 | HttpStatus: 409 |
2193 | 2193 | ||
2194 | Value: 5121 | ||
2195 | Name: BANK_REGISTER_USERNAME_REUSE | ||
2196 | Description: The client tried to register a new account with an username already in use. | ||
2197 | HttpStatus: 409 | ||
2198 | |||
2199 | Value: 5122 | ||
2200 | Name: BANK_REGISTER_PAYTO_URI_REUSE | ||
2201 | Description: The client tried to register a new account with a payto:// URI already in use. | ||
2202 | HttpStatus: 409 | ||
2203 | |||
2204 | Value: 5123 | ||
2205 | Name: BANK_ACCOUNT_BALANCE_NOT_ZERO | ||
2206 | Description: The client tried to delete an account with a non null balance. | ||
2207 | HttpStatus: 409 | ||
2208 | |||
2209 | Value: 5124 | ||
2210 | Name: BANK_UNKNOWN_CREDITOR | ||
2211 | Description: The client tried to create a transaction or an operation that credit an unknown account. | ||
2212 | HttpStatus: 409 | ||
2213 | |||
2214 | Value: 5125 | ||
2215 | Name: BANK_UNKNOWN_DEBTOR | ||
2216 | Description: The client tried to create a transaction or an operation that debit an unknown account. | ||
2217 | HttpStatus: 409 | ||
2218 | |||
2219 | Value: 5126 | ||
2220 | Name: BANK_ACCOUNT_IS_EXCHANGE | ||
2221 | Description: The client tried to perform an action prohibited for exchange accounts. | ||
2222 | HttpStatus: 409 | ||
2223 | |||
2224 | Value: 5127 | ||
2225 | Name: BANK_ACCOUNT_IS_NOT_EXCHANGE | ||
2226 | Description: The client tried to perform an action reserved for exchange accounts. | ||
2227 | HttpStatus: 409 | ||
2228 | |||
2229 | Value: 5128 | ||
2230 | Name: BANK_BAD_CONVERSION | ||
2231 | Description: Received currency conversion is wrong. | ||
2232 | HttpStatus: 409 | ||
2233 | |||
2234 | Value: 5129 | ||
2235 | Name: BANK_MISSING_TAN_INFO | ||
2236 | Description: The account referenced in this operation is missing tan info for the chosen channel. | ||
2237 | HttpStatus: 409 | ||
2238 | |||
2239 | Value: 5130 | ||
2240 | Name: BANK_CONFIRM_INCOMPLETE | ||
2241 | Description: The client attempted to confirm a transaction with incomplete info. | ||
2242 | HttpStatus: 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 | ------------------------------------------------------------------------------- | ||
190 | Value 28 | ||
191 | HTTP Status Code 400 | ||
192 | Description 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 | ------------------------------------------------------------------------------- |
190 | Value 30 | 200 | Value 30 |
191 | HTTP Status Code 400 | 201 | HTTP Status Code 400 |
192 | Description The currencies involved in the operation do not match. | 202 | Description 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 | ------------------------------------------------------------------------------- | ||
270 | Value 44 | ||
271 | HTTP Status Code 403 | ||
272 | Description 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 | ------------------------------------------------------------------------------- |
260 | Value 50 | 280 | Value 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 | ------------------------------------------------------------------------------- | ||
2790 | Value 2024 | ||
2791 | HTTP Status Code 409 | ||
2792 | Description 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 | ------------------------------------------------------------------------------- |
2770 | Value 2100 | 2800 | Value 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 | ------------------------------------------------------------------------------- | ||
3940 | Value 5105 | ||
3941 | HTTP Status Code 403 | ||
3942 | Description 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 | ------------------------------------------------------------------------------- |
3950 | Value 5106 | 3970 | Value 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 | ------------------------------------------------------------------------------- | ||
4110 | Value 5120 | ||
4111 | HTTP Status Code 409 | ||
4112 | Description 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 | ------------------------------------------------------------------------------- | ||
4120 | Value 5121 | ||
4121 | HTTP Status Code 409 | ||
4122 | Description 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 | ------------------------------------------------------------------------------- | ||
4130 | Value 5122 | ||
4131 | HTTP Status Code 409 | ||
4132 | Description 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 | ------------------------------------------------------------------------------- | ||
4140 | Value 5123 | ||
4141 | HTTP Status Code 409 | ||
4142 | Description The client tried to delete an account with a non null balance. | ||
4143 | =================== =========================================================== | ||
4144 | |||
4145 | |||
4146 | |||
4147 | =================== =========================================================== | ||
4148 | TALER_EC_BANK_UNKNOWN_CREDITOR | ||
4149 | ------------------------------------------------------------------------------- | ||
4150 | Value 5124 | ||
4151 | HTTP Status Code 409 | ||
4152 | Description 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 | ------------------------------------------------------------------------------- | ||
4160 | Value 5125 | ||
4161 | HTTP Status Code 409 | ||
4162 | Description 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 | ------------------------------------------------------------------------------- | ||
4170 | Value 5126 | ||
4171 | HTTP Status Code 409 | ||
4172 | Description 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 | ------------------------------------------------------------------------------- | ||
4180 | Value 5127 | ||
4181 | HTTP Status Code 409 | ||
4182 | Description The client tried to perform an action reserved for exchange accounts. | ||
4183 | =================== =========================================================== | ||
4184 | |||
4185 | |||
4186 | |||
4187 | =================== =========================================================== | ||
4188 | TALER_EC_BANK_BAD_CONVERSION | ||
4189 | ------------------------------------------------------------------------------- | ||
4190 | Value 5128 | ||
4191 | HTTP Status Code 409 | ||
4192 | Description Received currency conversion is wrong. | ||
4193 | =================== =========================================================== | ||
4194 | |||
4195 | |||
4196 | |||
4197 | =================== =========================================================== | ||
4198 | TALER_EC_BANK_MISSING_TAN_INFO | ||
4199 | ------------------------------------------------------------------------------- | ||
4200 | Value 5129 | ||
4201 | HTTP Status Code 409 | ||
4202 | Description 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 | ------------------------------------------------------------------------------- | ||
4210 | Value 5130 | ||
4211 | HTTP Status Code 409 | ||
4212 | Description 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 | ------------------------------------------------------------------------------- |
4090 | Value 6100 | 4220 | Value 6100 |