npm.io
1.7.5 • Published 1 week ago

exframe-errors

Licence
ISC
Version
1.7.5
Deps
0
Size
19 kB
Vulns
0
Weekly
0

Exframe Errors

this module aims to provide ots errors for consumption in middleware services and wherever else desired

these errors default statusCodes, errorCodes, and messages

ExframeBase

this is the error all other errors extend from. Use this to create your own custom error for your service

Axios

This error expects to get an error straight from axios

Forbidden

this error sets defaults for a forbidden error

InvalidInput

this error sets defaults for an invalid input error

ResourceNotFound

this error sets defaults for a resource not found error

Unauthorized

this error sets defaults for an unauthorized error