### Hierarchy

- Error
  - HttpError
    - HttpErrorImpl

### Indexable

[key: string]: unknown

## Index

### Constructors

- constructor

### Properties

- expose
- message
- name
- stack
- status
- statusCode
- Error

### Methods

- toJSON
- toString

## Constructors

### constructor

- new HttpError(code: number, message?: string): HttpError

- - Defined in home/runner/work/opine/opine/src/utils/createError.ts:18

  #### Parameters

  - ##### code: number

  - ##### Optional message: string

  #### Returns HttpError

## Properties

### expose

expose: boolean = false

- Defined in home/runner/work/opine/opine/src/utils/createError.ts:17

### message

message: string

Overrides IError.message

- Defined in home/runner/work/opine/opine/src/utils/createError.ts:14

### name

name: string

Overrides IError.name

- Defined in home/runner/work/opine/opine/src/utils/createError.ts:13

### Optional stack

stack: string

Inherited from HttpError.stack

- Defined in opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/typescript/lib/lib.es5.d.ts:1055

### status

status: number

- Defined in home/runner/work/opine/opine/src/utils/createError.ts:15

### statusCode

statusCode: number

- Defined in home/runner/work/opine/opine/src/utils/createError.ts:16

### Static Error

Error: ErrorConstructor

- Defined in opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/typescript/lib/lib.es5.d.ts:1064

## Methods

### toJSON

- toJSON(): { message: string; name: string; status: number }

- - Defined in home/runner/work/opine/opine/src/utils/createError.ts:56

  #### Returns { message: string; name: string; status: number }

  - ##### message: string

  - ##### name: string

  - ##### status: number

### toString

- toString(): string

- - Defined in home/runner/work/opine/opine/src/utils/createError.ts:52

  #### Returns string

Generated using TypeDoc