Skip to content

Latest commit

 

History

History
87 lines (47 loc) · 1.62 KB

Forbidden.md

File metadata and controls

87 lines (47 loc) · 1.62 KB

@panenco/papi / Exports / Forbidden

Class: Forbidden

Http error with status code 403

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

new Forbidden(reason, message, payload?)

Parameters

Name Type
reason string
message string
payload? object

Overrides

ErrorBase.constructor

Defined in

contracts/errors/forbidden.error.ts:9

Properties

code

code: number

Inherited from

ErrorBase.code

Defined in

contracts/errors/errorBase.error.ts:9


reason

reason: string

Inherited from

ErrorBase.reason

Defined in

contracts/errors/errorBase.error.ts:10


payload

Optional payload: object

Inherited from

ErrorBase.payload

Defined in

contracts/errors/errorBase.error.ts:11