aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2023-09-29 10:39:21 +0200
committerMS <ms@taler.net>2023-09-29 10:39:21 +0200
commite9015f67dd6674680a0137b6ef8a04e08a8613e3 (patch)
tree00c9b50370f059de24f3c4ac0891df838d9b3840
parent64244e85f34d3090ab60ab07c33d8c0de29ab161 (diff)
downloadgana-e9015f67dd6674680a0137b6ef8a04e08a8613e3.tar.gz
gana-e9015f67dd6674680a0137b6ef8a04e08a8613e3.zip
libeufin-bank error codes.
-rw-r--r--gnu-taler-error-codes/registry.rec19
1 files changed, 14 insertions, 5 deletions
diff --git a/gnu-taler-error-codes/registry.rec b/gnu-taler-error-codes/registry.rec
index ef29964..1815eb0 100644
--- a/gnu-taler-error-codes/registry.rec
+++ b/gnu-taler-error-codes/registry.rec
@@ -120,6 +120,10 @@ Name: GENERIC_RESERVE_PUB_MALFORMED
120Description: The reserve public key given as part of a /reserves/ endpoint was malformed. 120Description: The reserve public key given as part of a /reserves/ endpoint was malformed.
121HttpStatus: 400 121HttpStatus: 400
122 122
123Value: 28
124Name: GENERIC_COMPRESSION_INVALID
125Description: The body in the request could not be decompressed by the server.
126HttpStatus: 400
123 127
124# Circumstantial client-side protocol problems (30-39) 128# Circumstantial client-side protocol problems (30-39)
125# (Circumstantial == may work with another server, but not this one) 129# (Circumstantial == may work with another server, but not this one)
@@ -161,6 +165,10 @@ Name: GENERIC_TOKEN_MALFORMED
161Description: The service refused the request as the given authorization token is malformed. 165Description: The service refused the request as the given authorization token is malformed.
162HttpStatus: 401 166HttpStatus: 401
163 167
168Value: 44
169Name: GENERIC_FORBIDDEN
170Description: The service refused the request due to lack of proper rights on the resource.
171HttpStatus: 403
164 172
165# Server-side database problems (50-59) 173# Server-side database problems (50-59)
166 174
@@ -2104,11 +2112,6 @@ Name: BANK_NUMBER_TOO_BIG
2104Description: A too big number was used (as value and/or fraction) to instantiate an amount object. 2112Description: A too big number was used (as value and/or fraction) to instantiate an amount object.
2105HttpStatus: 400 2113HttpStatus: 400
2106 2114
2107Value: 5105
2108Name: BANK_LOGIN_FAILED
2109Description: Could not login for the requested operation.
2110HttpStatus: 403
2111
2112Value: 5106 2115Value: 5106
2113Name: BANK_UNKNOWN_ACCOUNT 2116Name: BANK_UNKNOWN_ACCOUNT
2114Description: The bank account referenced in the requested operation was not found. 2117Description: The bank account referenced in the requested operation was not found.
@@ -2179,6 +2182,12 @@ Name: BANK_POST_WITHDRAWAL_OPERATION_REQUIRED
2179Description: The client attempted to confirm a withdrawal operation before the wallet posted the required details. 2182Description: The client attempted to confirm a withdrawal operation before the wallet posted the required details.
2180HttpStatus: 400 2183HttpStatus: 400
2181 2184
2185Value: 5120
2186Name: BANK_RESERVED_USERNAME_CONFLICT
2187Description: The client tried to register a new account under a reserved username (like 'admin' for example).
2188HttpStatus: 409
2189
2190
2182 2191
2183# 6000 - 6999: Reserved for sync 2192# 6000 - 6999: Reserved for sync
2184# 6000 - 6099: Reserved for SYNC_GENERIC 2193# 6000 - 6099: Reserved for SYNC_GENERIC