## Index

### Classes

- HttpError
- HttpErrorImpl

### Interfaces

- IError
- Props

### Functions

- createError

## Functions

### createError

- createError(status: number, message?: string, props?: Props): HttpError
- createError(status: number, props: Props): HttpError
- createError(err: Error, props?: Props): IError

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

  Create a new HttpError.

  #### Parameters

  - ##### status: number

  - ##### Optional message: string

  - ##### Optional props: Props

  #### Returns HttpError

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

  #### Parameters

  - ##### status: number

  - ##### props: Props

  #### Returns HttpError

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

  #### Parameters

  - ##### err: Error

  - ##### Optional props: Props

  #### Returns IError

Generated using TypeDoc