Skip to content

ForbiddenError

Overview

Module

This module defines the ForbiddenError class, a custom error type that represents a 403 Forbidden HTTP status. This error is typically thrown when a user attempts to access a resource or perform an action for which they do not have the necessary permissions. The ForbiddenError class extends the built-in Error class and provides a default error message, while also allowing for custom messages to be specified when instantiated.

Classes

ForbiddenError