UNPKG

@telstra/core

Version:
67 lines (66 loc) 2.11 kB
export class ErrorCode { static InvalidClientKey = { message: 'Invalid client key.', code: 10001, }; static InvalidClientSecret = { message: 'Invalid client secret.', code: 10002, }; static AuthFailed = { message: 'Authentication failed.', code: 10003, }; static ConfigurationMissing = { message: 'Required configuration is missing.', code: 10004, }; static MissingClientKey = { message: 'Unable to authorise client, [client_key] was not defined.', code: 10008, }; static MissingClientSecret = { message: 'Unable to authorise client, [client_secret] was not defined.', code: 10009, }; static InvalidAuthCredentials = { message: 'Invalid AuthCredentials', code: 10010, }; static InvalidAuthTokenRetryCount = { message: 'Retry count cannot be negative', code: 10011, }; static NoCredentialsFound = { message: 'No credentials found', code: 10013, }; static MissingClientPair = { message: 'Unable to authorise client, [client_key] and [client_secret] was not defined.', code: 10014, }; static InvalidToken = { message: 'Invalid token', code: 10015, }; static MissingTokenData = { message: 'The Access Token and/or expires_at date is missing', code: 10016, }; static InvalidTokenRetryCount = { message: 'The Token Retry Count must be greater or equal than 0', code: 10017, }; static InvalidProfileName = { message: 'The stated profile cannot be found, please double check the name matches what in the object.', code: 10018, }; static MaxAuthRetryCountReached = { message: 'The API request retry limit has reached before getting a successful response fromm the server', code: 10201, }; static InvalidServerResponse = { message: 'The server returned an invalid response, please check the request body and try again', code: 10202, }; }