Skip to main content

Error codes

Error codes returned across the Full Integration API. The broker's CRM must return the relevant codes for the calls cTrader makes into it. Each endpoint entry links to the codes that apply to it.

Standard HTTP status codes

Status codeDesignationGeneral usage
200OKRequest successful
400Bad RequestInvalid request parameters
403ForbiddenPermission denied
404Not FoundResource not found
410GoneResource expired
417Expectation FailedInvalid token format

SSO (OAuth) specific error codes

StatusError codeCause
400 Bad RequestNoneAt least one required field is missing or request parameters are malformed: missing query parameters, invalid JSON body, malformed URL parameters or missing broker identification.
403 ForbiddenCH_CLIENT_AUTH_FAILUREInvalid password when requesting the CRM API token, or invalid crmApiToken in subsequent CRM API calls.
403 ForbiddenCH_INSUFFICIENT_PERMISSIONSBroker lacks access rights due to manager.disabledBrokerName configuration.
404 Not FoundOT token not foundcode not found in broker's backend (Verify and exchange OT token).
404 Not FoundLong-term access token not foundaccessToken not found in broker's backend (Verify long-term access token).
404 Not FoundUser identifier not founduserId not found in broker's backend (POST /oauth2/onetime/generate).
410 GoneCID_TOKEN_EXPIREDExpired token used to access broker's backend.
417 Expectation FailedCID_NON_EXISTED_TOKENInvalid token format used to access broker's backend.