Skip to content

Instantly share code, notes, and snippets.

@IamNator
Created November 24, 2023 12:59
Show Gist options
  • Save IamNator/3758467d84bf9a75788b2f479c35f25c to your computer and use it in GitHub Desktop.
Save IamNator/3758467d84bf9a75788b2f479c35f25c to your computer and use it in GitHub Desktop.
var ErrorCodes = map[string]string{
"200": "successful",
"400": "Bad Request data",
"503": "Failed Transaction from the service provider",
"500": "Failed Transaction from the service provider",
"404": "Transaction / Resource not found",
"BX0001": "Connection Timeout: Retried 3 times and no response from the service provider",
"BX0002": "Transaction does not exist",
"BX0003": "Invalid request parameters data",
"BX0004": "An In-valid user account in authorization headers sent",
"BX0005": "Baxi request date is too old, use the current GMT date.",
"BX0006": "Hash Signature does not match request data sent.",
"BX0007": "Unidentified User Account",
"BX0008": "The request coming from an untrusted source",
"BX0009": "Client not permitted to access user data",
"BX0010": "The agent does not exist",
"BX0011": "Invalid Bearer String, expected keyword Baxi or API key",
"BX0012": "Authentication/Authorization mechanism not implemented",
"BX0013": "Bearer Token not provided",
"BX0014": "Token has expired.",
"BX0015": "Invalid token supplied",
"BX0016": "Token has been blacklisted",
"BX0017": "Server Error: Unable to retrieve property",
"BX0018": "Request route not found",
"BX0019": "Request status unknown, Connection Timeout",
"BX0020": "An error occurred during transaction or request processing",
"BX0021": "Transaction status unknown: Please query to confirm final status",
"BX0022": "Failed Transaction from the service provider",
"BX0023": "Duplicate Agent Transaction Reference",
"BX0024": "No response from the connecting service provider",
"BX0025": "Error encountered during name finder validation",
"BX0026": "Requested biller service does not exist",
"PROG0001": "Programming error on the platform. (Should contact CDL support)",
"PROG0002": "Programming error on the platform. (Should contact CDL support)",
"PROG0003": "Programming error on the platform. (Should contact CDL support)",
"SEC00001": "Bad credentials",
"SEC00002": "The user account has expired.",
"SEC00003": "User credentials have expired.",
"SEC00004": "The user is not active.",
"SEC00005": "The user is blocked.",
"SEC00100": "Unknown authentication error. (Should contact CDL support)",
"SEC01001": "Access is denied.",
"UNK0001": "Unknown error on the platform. (Should resolve through API",
"EXC00100": "The service code is not recognized. (Should check client implementation)",
"EXC00102": "Not enough funds were available to complete the exchange.",
"EXC00103": "The requested service is not active. (Should resolve through API)",
"EXC00105": "The balance could not be obtained. (Should resolve through API)",
"EXC00107": "The cancellation of the exchange was rejected by the provider. (Should contact CDL support)",
"EXC00109": "The service is blocked. (Should resolve through API)",
"EXC00112": "The query of exchange failed because the exchange was never registered on the platform.",
"EXC00113": "The exchange is already canceled by the provider.",
"EXC00114": "The exchange is still pending. (Should resolve through API)",
"EXC00115": "The exchange was not sent to the provider.",
"EXC00116": "The exchange request was already registered on the platform with the same ID but with different values. (Should check client implementation)",
"EXC00117": "There was an error while calculating commissions. (Must contact CDL support immediately)",
"EXC00118": "The sent service fee is invalid.",
"EXC00119": "The payment collector code is not recognized. (Should check client implementation)",
"EXC00123": "Service is not allowed.",
"EXC00124": "The provider platform did not respond in a timely manner. (Should resolve through API)",
"EXC00125": "The exchange request is not valid.",
"EXC00126": "The cancellation failed. (Must be resolved through 'query' API call)",
"EXC00127": "The exchange amount is too high.",
"EXC00130": "Payment method not recognized. (Should check client implementation)",
"EXC00131": "The exchange request is not allowed at the moment.",
}
@IamNator
Copy link
Author

IamNator commented Nov 26, 2023

Authorization and Access (Error Codes: SEC00001 - SEC01001):

  • Authorization Issue (SEC00001 - SEC01001): We're experiencing technical difficulties with our service provider. Please bear with us as we work to resolve this.

Service Unavailability (Error Codes: EXC00100 - EXC00131):

  • Service Unavailable (EXC00100 - EXC00131): Service unavailable due to technical difficulties. Please try again or contact support for assistance.
  • Transaction Failure (EXC00100 - EXC00131): We're encountering problems processing transactions due to issues with our service provider. Please try again or contact support for assistance.

Data, Request Errors AND Failed Transaction Errors (Error Codes: 400 - 404, 500 - 503, BX0020):

  • Failed Transaction Error (500 - 503): We've encountered an issue with your request from our service provider. Please try again or contact support for assistance.

Technical/System Errors (Error Codes: PROG0001 - PROG0003):

  • System Error (PROG0001 - PROG0003): Our service provider is currently experiencing technical difficulties. Please try again or contact support for assistance.

Unknown/Error Handling (Error Codes: UNK0001, BX0001 - BX0026):

  • Unknown Error (UNK0001 - BX0026): We're sorry, an unexpected error occurred. Please try again or contact support for assistance.

*** Not really errors ***:
BX0021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment