Sailor Module Response
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