@stayer/interfaces
v0.0.17
Published
Common interfaces, types, errors & exceptions of the Stayer framework.
Downloads
40
Readme
@stayer/interfaces
A module that contains common interfaces, types, enums, errors & exceptions used by other modules of the Stayer framework.
Public API
Exception- an abstract class to extend default Error Node.js class.HttpError- an abstract Exception representing any HTTP error status.
Http exceptions:
BadRequest- BadRequest (400) ExceptionUnauthorized- Unauthorized (401) ExceptionForbidden- Forbidden (403) ExceptionNotFound- NotFound (404) ExceptionMethodNotAllowed- MethodNotAllowed (405) ExceptionConflict- Conflict (409) ExceptionInternalServerError- InternalServerError (500) ExceptionNotImplemented- NotImplemented (501) Exception
More HTTP Exceptions can be added by extending the HttpError abstract class.
