krapio
Library referenceClasses

KrunkerForbiddenError

the api key is invalid or revoked; on a token endpoint the player lacks the role (moderator, kpd reviewer); on the app api the token lacks the scope

Extends

Constructors

Constructor

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

Parameters

ParameterType
statusnumber
urlstring
bodyunknown
message?string

Returns

KrunkerForbiddenError

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