sailor-module-response

0.1.1 • Public • Published

Sailor Module Response

Dependency status Dev Dependencies Status NPM Status

HTTP Status Codes for your Application

Install

npm install sailor-module-response

API

Code Status Function
200 OK res.ok([data], [options])
201 created res.created([data], [options])
204 noContent res.noContent([data], [options])
304 notModified res.notModified([data], [options])
400 badRequest res.badRequest([data], [options])
401 unauthorized res.unauthorized([data], [options])
403 forbidden res.forbidden([data], [options])
404 notFound res.notFound([data], [options])
405 notSupported res.notSupported([data], [options])
409 conflict res.conflict([data], [options])
429 tooManyRequest res.tooMany([data], [options])
500 serverError res.serverError([data], [options])

License

MIT © sailorjs

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i sailor-module-response

      Weekly Downloads

      4

      Version

      0.1.1

      License

      MIT

      Last publish

      Collaborators

      • kikobeats