krapio
Library referenceClasses

KrunkerForbiddenError

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

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

On this page