adding more bank's error codes

This commit is contained in:
Marcello Stanisci 2017-12-15 16:17:00 +01:00
parent ee263024e6
commit 8021e7064d
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F

View File

@ -1502,39 +1502,68 @@ enum TALER_ErrorCode
/* *************** Taler BANK/FAKEBANK error codes *************** */ /* *************** Taler BANK/FAKEBANK error codes *************** */
/**
* Authentication failed for an unspecified request.
* To return when the view name is not available, or
* no specific error code is defined yet.
*/
TALER_EC_BANK_NOT_AUTHORIZED = 5000,
/**
* The bank could not find the bank account specified
* in the request. Returned with a status code of MHD_HTTP_NOT_FOUND.
*/
TALER_EC_BANK_UNKNOWN_ACCOUNT = 5001,
/** /**
* Authentication failed for the /admin/add/incoming request. * Authentication failed for the /admin/add/incoming request.
* Returned with a status code of MHD_HTTP_FORBIDDEN. * Returned with a status code of MHD_HTTP_FORBIDDEN.
*/ */
TALER_EC_BANK_TRANSFER_NOT_AUHTORIZED = 4101, TALER_EC_BANK_TRANSFER_NOT_AUHTORIZED = 5100,
/**
* The wire transfer cannot be done because the debitor would
* reach a unallowed debit.
*/
TALER_EC_BANK_TRANSFER_DEBIT = 5101,
/**
* The wire transfer cannot be done because the credit and
* debit account are the same.
*/
TALER_EC_BANK_TRANSFER_SAME_ACCOUNT = 5102,
/** /**
* Authentication failed for the /history request. * Authentication failed for the /history request.
* Returned with a status code of MHD_HTTP_FORBIDDEN. * Returned with a status code of MHD_HTTP_FORBIDDEN.
*/ */
TALER_EC_BANK_HISTORY_NOT_AUHTORIZED = 4151, TALER_EC_BANK_HISTORY_NOT_AUHTORIZED = 5200,
/** /**
* The bank library had trouble obtaining a valid * The bank library had trouble obtaining a valid
* HTTP response. * HTTP response.
* Returned with a status code of 0. * Returned with a status code of 0.
*/ */
TALER_EC_BANK_HISTORY_HTTP_FAILURE = 4152, TALER_EC_BANK_HISTORY_HTTP_FAILURE = 5201,
/** /**
* The bank could not find the wire transfer that was supposed to * The bank could not find the wire transfer that was supposed to
* be rejected. * be rejected.
* Returned with a status code of MHD_HTTP_NOT_FOUND. * Returned with a status code of MHD_HTTP_NOT_FOUND.
*/ */
TALER_EC_BANK_REJECT_NOT_FOUND = 4250, TALER_EC_BANK_REJECT_NOT_FOUND = 5300,
/** /**
* Authentication failed for the /reject request. * Authentication failed for the /reject request.
* Returned with a status code of MHD_HTTP_FORBIDDEN. * Returned with a status code of MHD_HTTP_FORBIDDEN.
*/ */
TALER_EC_BANK_REJECT_NOT_AUHTORIZED = 4251, TALER_EC_BANK_REJECT_NOT_AUTHORIZED = 5301,
/**
* The client wants to reject a transaction where they are
* not the _credit_ party, impossible!
*/
TALER_EC_BANK_REJECT_NO_RIGHTS = 5302,
/** /**
* End of error code range. * End of error code range.