REST Response Status Codes Utility
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
package.json
status.js

README.md

rest-status

REST Response Status Codes Utility

Guide

Install

npm install rest-status

Use with status code

require("rest-status").E404(); // Error object with: status=404, message=Not Found

Use with status message

require("rest-status").NotFound(); // Error object with: status=404, message=Not Found