Licence
—
Version
3005.464.1
Deps
4
Size
35 kB
Vulns
0
Weekly
0
@springworks/error-factory
Custom error that makes use of HTTP error codes to identify different error types.
yarn add @springworks/error-factory
import { createError } from '@springworks/error-factory';
const err = createError({ code: 404, message: 'Could not find user', cause: db_err });