0.1.1 • Published 10 years ago

sailor-module-response v0.1.1

Weekly downloads
3
License
MIT
Repository
-
Last release
10 years ago

Sailor Module Response

Dependency status Dev Dependencies Status NPM Status

HTTP Status Codes for your Application

Install

npm install sailor-module-response

API

Code StatusFunction
200 OKres.ok(data, options)
201 createdres.created(data, options)
204 noContentres.noContent(data, options)
304 notModifiedres.notModified(data, options)
400 badRequestres.badRequest(data, options)
401 unauthorizedres.unauthorized(data, options)
403 forbiddenres.forbidden(data, options)
404 notFoundres.notFound(data, options)
405 notSupportedres.notSupported(data, options)
409 conflictres.conflict(data, options)
429 tooManyRequestres.tooMany(data, options)
500 serverErrorres.serverError(data, options)

License

MIT © sailorjs