Skip to content

Class: AccountError ​

Defined in: server/accounts.ts:254

Raised for requests that cannot be done. status is the HTTP status the API answers with.

Extends ​

  • Error

Constructors ​

Constructor ​

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

Defined in: server/accounts.ts:260

Parameters ​

ParameterType
statusnumber
codestring
messagestring

Returns ​

AccountError

Overrides ​

Error.constructor

Properties ​

PropertyModifierTypeDescriptionDefined in
statusreadonlynumberThe HTTP status the API answers with, e.g. 409.server/accounts.ts:256
codereadonlystringMachine-readable, e.g. name_taken or invalid_credentials.server/accounts.ts:258

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