krapio
Library referenceClasses

KrunkerUnauthorizedError

a token or app endpoint without a valid token: missing, expired or rejected; on the oauth endpoints a failed client authentication

Extends

Constructors

Constructor

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

Parameters

ParameterType
statusnumber
urlstring
bodyunknown
message?string

Returns

KrunkerUnauthorizedError

Inherited from

KrunkerHttpError.constructor

Properties

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

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

Inherited from

KrunkerHttpError.code

On this page