Skip to content

Class: AccountRequestError ​

Defined in: client/accounts.ts:98

A request the accounts API refused. code is machine-readable, e.g. "name_taken" or "invalid_credentials".

Extends ​

  • Error

Constructors ​

Constructor ​

ts
new AccountRequestError(
   status, 
   code, 
   message
): AccountRequestError;

Defined in: client/accounts.ts:104

Parameters ​

ParameterType
statusnumber
codestring
messagestring

Returns ​

AccountRequestError

Overrides ​

Error.constructor

Properties ​

PropertyModifierTypeDescriptionDefined in
statusreadonlynumberThe HTTP status, e.g. 409.client/accounts.ts:100
codereadonlystringMachine-readable, e.g. name_taken.client/accounts.ts:102

MIT licence. Tickflare is an independent project and is not affiliated with Cloudflare.