@videsk/feathers-errors

1.0.1 • Public • Published

Feathers errors extended

Extended Feathers errors.

Available errors

  • BadRequest - 400
  • NotAuthenticated - 401
  • PaymentError - 402
  • Forbidden - 403
  • NotFound - 404
  • MethodNotAllowed - 405
  • NotAcceptable - 406
  • Timeout - 408
  • Conflict - 409
  • Gone - 410 [added]
  • LengthRequired - 411
  • PreconditionFailed - 412 [added]
  • URITooLong - 414 [added]
  • Unprocessable - 422
  • Locked - 423 [added]
  • PreconditionRequired - 428 [added]
  • TooManyRequests - 429
  • UnavailableForLegalReasons - 451 [added]
  • GeneralError - 500
  • NotImplemented - 501
  • BadGateway - 502
  • Unavailable - 503

How to use

const { NotAuthenticated } = required('@videsk/feathers-errors');

new NotAuthenticated('Message error');

/@videsk/feathers-errors/

    Package Sidebar

    Install

    npm i @videsk/feathers-errors

    Weekly Downloads

    4

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    5.42 kB

    Total Files

    9

    Last publish

    Collaborators

    • francor
    • noheliajoeliana
    • matiaslopezd