Skip to content
This repository was archived by the owner on Jul 9, 2026. It is now read-only.

Latest commit

 

History

History
89 lines (48 loc) · 1.68 KB

File metadata and controls

89 lines (48 loc) · 1.68 KB

@panenco/papi / Exports / BadRequest

Class: BadRequest

Http error with status code 400

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

new BadRequest(reason, message, payload?)

Parameters

Name Type
reason string
message string
payload? object

Overrides

ErrorBase.constructor

Defined in

contracts/errors/badRequest.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