krapio
Library referenceClasses

KrunkerHttpError

a reply with a non 2xx status; the subclasses cover the common ones

Extends

Extended by

Constructors

Constructor

new KrunkerHttpError(
   status, 
   url, 
   body, 
   message?
): KrunkerHttpError;

Parameters

ParameterType
statusnumber
urlstring
bodyunknown
message?string

Returns

KrunkerHttpError

Overrides

KrunkerError.constructor

Properties

PropertyModifierTypeDescriptionInherited from
bodyreadonlyunknownparsed error body, or the raw text when it was no json-
cause?publicunknown-KrunkerError.cause
messagepublicstring-KrunkerError.message
namepublicstring-KrunkerError.name
stack?publicstring-KrunkerError.stack
statusreadonlynumber--
urlreadonlystring--

Accessors

code

Get Signature

get code(): string | null;

the machine readable code of the reply, null when it has none: error.code of gapi and the app api (insufficient_scope, not_clan_officer, ...) or the error of an oauth endpoint (invalid_grant, ...)

Returns

string | null

On this page