gana

GNUnet Assigned Numbers Authority
Log | Files | Refs | README | LICENSE

commit 9d7d13078ab0270ed300e9ff1b873210f00478a8
parent c7d16f850c5cd09a2f03da97ba87978ca0ba7eed
Author: Antoine A <>
Date:   Tue, 31 Oct 2023 11:26:57 +0100

more libeufin-bank error codes

Diffstat:
Mgnu-taler-error-codes/kt.template | 2+-
Mgnu-taler-error-codes/registry.rec | 49+++++++++++++++++++++++++++++++++++++++++++++++++
Mgnu-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 @@ -5,4 +5,4 @@ * Returned with an HTTP status code of #MHD_HTTP_{{HttpStatus_Identifier}} ({{HttpStatus_Value}}). * (A value of 0 indicates that the error is generated client-side). */ - TALER_EC_{{Name}}({{Value}}), + {{Name}}({{Value}}), diff --git a/gnu-taler-error-codes/registry.rec b/gnu-taler-error-codes/registry.rec @@ -2191,6 +2191,55 @@ Name: BANK_RESERVED_USERNAME_CONFLICT Description: The client tried to register a new account under a reserved username (like 'admin' for example). HttpStatus: 409 +Value: 5121 +Name: BANK_REGISTER_USERNAME_REUSE +Description: The client tried to register a new account with an username already in use. +HttpStatus: 409 + +Value: 5122 +Name: BANK_REGISTER_PAYTO_URI_REUSE +Description: The client tried to register a new account with a payto:// URI already in use. +HttpStatus: 409 + +Value: 5123 +Name: BANK_ACCOUNT_BALANCE_NOT_ZERO +Description: The client tried to delete an account with a non null balance. +HttpStatus: 409 + +Value: 5124 +Name: BANK_UNKNOWN_CREDITOR +Description: The client tried to create a transaction or an operation that credit an unknown account. +HttpStatus: 409 + +Value: 5125 +Name: BANK_UNKNOWN_DEBTOR +Description: The client tried to create a transaction or an operation that debit an unknown account. +HttpStatus: 409 + +Value: 5126 +Name: BANK_ACCOUNT_IS_EXCHANGE +Description: The client tried to perform an action prohibited for exchange accounts. +HttpStatus: 409 + +Value: 5127 +Name: BANK_ACCOUNT_IS_NOT_EXCHANGE +Description: The client tried to perform an action reserved for exchange accounts. +HttpStatus: 409 + +Value: 5128 +Name: BANK_BAD_CONVERSION +Description: Received currency conversion is wrong. +HttpStatus: 409 + +Value: 5129 +Name: BANK_MISSING_TAN_INFO +Description: The account referenced in this operation is missing tan info for the chosen channel. +HttpStatus: 409 + +Value: 5130 +Name: BANK_CONFIRM_INCOMPLETE +Description: The client attempted to confirm a transaction with incomplete info. +HttpStatus: 409 # 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 @@ -185,11 +185,21 @@ Description The reserve public key given as part of a /reserves/ endpoin =================== =========================================================== + TALER_EC_GENERIC_COMPRESSION_INVALID +------------------------------------------------------------------------------- +Value 28 +HTTP Status Code 400 +Description The body in the request could not be decompressed by the server. +=================== =========================================================== + + + +=================== =========================================================== TALER_EC_GENERIC_CURRENCY_MISMATCH ------------------------------------------------------------------------------- Value 30 HTTP Status Code 400 -Description The currencies involved in the operation do not match. +Description The currency involved in the operation is not acceptable for this backend. =================== =========================================================== @@ -255,6 +265,16 @@ Description The service refused the request as the given authorization t =================== =========================================================== + TALER_EC_GENERIC_FORBIDDEN +------------------------------------------------------------------------------- +Value 44 +HTTP Status Code 403 +Description The service refused the request due to lack of proper rights on the resource. +=================== =========================================================== + + + +=================== =========================================================== TALER_EC_GENERIC_DB_SETUP_FAILED ------------------------------------------------------------------------------- Value 50 @@ -2765,6 +2785,16 @@ Description The wire hash was malformed. =================== =========================================================== + TALER_EC_MERCHANT_GENERIC_CURRENCY_MISMATCH +------------------------------------------------------------------------------- +Value 2024 +HTTP Status Code 409 +Description The currency specified in the operation does not work with the current state of the given resource. +=================== =========================================================== + + + +=================== =========================================================== TALER_EC_MERCHANT_GET_ORDERS_EXCHANGE_TRACKING_FAILURE ------------------------------------------------------------------------------- Value 2100 @@ -3935,16 +3965,6 @@ Description A too big number was used (as value and/or fraction) to inst =================== =========================================================== - TALER_EC_BANK_LOGIN_FAILED -------------------------------------------------------------------------------- -Value 5105 -HTTP Status Code 403 -Description Could not login for the requested operation. -=================== =========================================================== - - - -=================== =========================================================== TALER_EC_BANK_UNKNOWN_ACCOUNT ------------------------------------------------------------------------------- Value 5106 @@ -4085,6 +4105,116 @@ Description The client attempted to confirm a withdrawal operation befor =================== =========================================================== + TALER_EC_BANK_RESERVED_USERNAME_CONFLICT +------------------------------------------------------------------------------- +Value 5120 +HTTP Status Code 409 +Description The client tried to register a new account under a reserved username (like 'admin' for example). +=================== =========================================================== + + + +=================== =========================================================== + TALER_EC_BANK_REGISTER_USERNAME_REUSE +------------------------------------------------------------------------------- +Value 5121 +HTTP Status Code 409 +Description The client tried to register a new account with an username already in use. +=================== =========================================================== + + + +=================== =========================================================== + TALER_EC_BANK_REGISTER_PAYTO_URI_REUSE +------------------------------------------------------------------------------- +Value 5122 +HTTP Status Code 409 +Description The client tried to register a new account with a payto:// URI already in use. +=================== =========================================================== + + + +=================== =========================================================== + TALER_EC_BANK_ACCOUNT_BALANCE_NOT_ZERO +------------------------------------------------------------------------------- +Value 5123 +HTTP Status Code 409 +Description The client tried to delete an account with a non null balance. +=================== =========================================================== + + + +=================== =========================================================== + TALER_EC_BANK_UNKNOWN_CREDITOR +------------------------------------------------------------------------------- +Value 5124 +HTTP Status Code 409 +Description The client tried to create a transaction or an operation that credit an unknown account. +=================== =========================================================== + + + +=================== =========================================================== + TALER_EC_BANK_UNKNOWN_DEBTOR +------------------------------------------------------------------------------- +Value 5125 +HTTP Status Code 409 +Description The client tried to create a transaction or an operation that debit an unknown account. +=================== =========================================================== + + + +=================== =========================================================== + TALER_EC_BANK_ACCOUNT_IS_EXCHANGE +------------------------------------------------------------------------------- +Value 5126 +HTTP Status Code 409 +Description The client tried to perform an action prohibited for exchange accounts. +=================== =========================================================== + + + +=================== =========================================================== + TALER_EC_BANK_ACCOUNT_IS_NOT_EXCHANGE +------------------------------------------------------------------------------- +Value 5127 +HTTP Status Code 409 +Description The client tried to perform an action reserved for exchange accounts. +=================== =========================================================== + + + +=================== =========================================================== + TALER_EC_BANK_BAD_CONVERSION +------------------------------------------------------------------------------- +Value 5128 +HTTP Status Code 409 +Description Received currency conversion is wrong. +=================== =========================================================== + + + +=================== =========================================================== + TALER_EC_BANK_MISSING_TAN_INFO +------------------------------------------------------------------------------- +Value 5129 +HTTP Status Code 409 +Description The account referenced in this operation is missing tan info for the chosen channel. +=================== =========================================================== + + + +=================== =========================================================== + TALER_EC_BANK_CONFIRM_INCOMPLETE +------------------------------------------------------------------------------- +Value 5130 +HTTP Status Code 409 +Description The client attempted to confirm a transaction with incomplete info. +=================== =========================================================== + + + +=================== =========================================================== TALER_EC_SYNC_ACCOUNT_UNKNOWN ------------------------------------------------------------------------------- Value 6100