Error Codes - Overview
These error codes are returned by the downstream system, namely trading-app-2, when there is a failure. These error codes can be found as part of the trading-app-2 code base under configs/error.ini.
If developers add new error codes to the system then they should be added to this document.
| Error Type | Error | Error Number |
|---|---|---|
| General | ||
| general | general | 1 |
| emailExists | 10 | |
| missingParams | 11 | |
| login | 20 | |
| emailNotFound | 21 | |
| loginRequired | 30 | |
| infoRequired | 31 | |
| confirmation | 40 | |
| depositRequired | 50 | |
| blocked | 100 | |
| frozen | 101 | |
| bannedCountry | 102 | |
| notEnoughFunds | 103 | |
| invalidFacebookUser | 104 | |
| invalidSite | 105 | |
| invalidParam | 106 | |
| expired | 107 | |
| invalidVKUser | 109 | |
| duplicateVKUser | 110 | |
| questionaryGeneralError | 111 | |
| invalidWCUser | 112 | |
| newWCUser | 113 | |
| invalidMode | 114 | |
| invalidWalletPassword | 115 | |
| demoDisabled | 116 | |
| Validate Function Errors | ||
| validate.function.validateMandatoryFields | missingParams | |
| validate.function.validateIllegalChars | invalidParam | |
| validate.function.validatePassword | invalidParam | |
| validate.function.validateCountry | invalidParam | |
| validate.function.validateEmail | invalidParam | |
| validate.function.validateBannedCountry | bannedCountry | |
| Risk Errors | ||
| payout | 200 | |
| stake | 201 | |
| userDailyBalance | 202 | |
| userStakePerGame | 203 | |
| frequency | 204 | |
| instrument | 205 | |
| feed | 206 | |
| strike | 207 | |
| exposure | 208 | |
| losses | 209 | |
| direction | 210 | |
| stakeFormat | 211 | |
| fx | 212 | |
| abook | 213 | |
| fxengine | 214 | |
| noorder | 215 | |
| trigger | 216 | |
| expiry | 217 | |
| value | 218 | |
| leverage | 219 | |
| Close Trade Errors | ||
| closeTrade.invalidParams | 250 | |
| closeTrade.instrumentClosed | 251 | |
| closeTrade.technical | 252 | |
| closeTrade.invalidGameType | 253 | |
| closeTrade.instrumentNotManuallyClosable | 254 | |
| closeTrade.closingPriceSLExceeded | 255 | |
| Financial Errors | ||
| technical | 300 | |
| validationSystem | 301 | |
| validationUser | 302 | |
| fraud | 303 | |
| Bonus Errors | ||
| bonus.technical | 340 | |
| bonus.invalidParams | 341 | |
| bonus.maxDeposit | 342 | |
| bonus.factor | 343 | |
| bonus.volumeTechnical | 344 | |
| bonus.volumeInactive | 345 | |
| bonus.volumeNotFound | 346 | |
| bonus.notFound | 347 | |
| bonus.factorNonExists | 348 | |
| bonus.maxForexBonusCharge | 349 | |
| Withdrawal Errors | ||
| withdrawal.technical | 380 | |
| withdrawal.empty | 381 | |
| withdrawal.reserved | 382 | |
| withdrawal.locked | 383 | |
| withdrawal.notFound | 384 | |
| withdrawal.wrongParams | 385 | |
| withdrawal.uploadDocumentsRequired | 386 | |
| Other Errors | ||
| invalidOption | 390 | |
| inactiveOption | 391 | |
| Payment Errors | ||
| paymentTechnicalError | 410 | |
| paymentInvalidParams | 411 | |
| paymentNotFound | 412 | |
| paymentConfigError | 413 | |
| paymentConnectionProblems | 414 | |
| paymentGatewayError | 415 | |
| paymentDeclined | 416 | |
| paymentInvalidChecksum | 417 | |
| paymentStatusUnknown | 418 | |
| paymentStatusUnknown | 419 | |
| Practice Wallet | ||
| practiceTechnicalError | 510 | |
| practiceInvalidParams | 511 | |
| practiceWalletExists | 512 | |
| practiceIsNotAllowed | 513 | |
| practiceExpired | 514 | |
| Wallets | ||
| wallets.technicalError | 600 | |
| wallets.invalidParams | 601 | |
| wallets.noWallet | 602 | |
| wallets.notEnoughFunds | 603 | |
| wallets.pendingBonusExists | 604 | |
| wallets.pendingNotReleased | 605 | |
| wallets.tradeableNegativeValues | 606 | |
| Custom Feed | ||
| customFeed.technical | 700 | |