1.0.1 • Published 4 years ago
@videsk/feathers-errors v1.0.1
Feathers errors extended
Extended Feathers errors.
Available errors
BadRequest-400NotAuthenticated-401PaymentError-402Forbidden-403NotFound-404MethodNotAllowed-405NotAcceptable-406Timeout-408Conflict-409Gone-410[added]LengthRequired-411PreconditionFailed-412[added]URITooLong-414[added]Unprocessable-422Locked-423[added]PreconditionRequired-428[added]TooManyRequests-429UnavailableForLegalReasons-451[added]GeneralError-500NotImplemented-501BadGateway-502Unavailable-503
How to use
const { NotAuthenticated } = required('@videsk/feathers-errors');
new NotAuthenticated('Message error');