README
What is this?
This package is for API apps based on express.
Installation
npm i express-error-codes --save
Example
const error = require("express-error-codes");
res.json(error(status, code))
Status codes
400: Bad Request
401: Not Authorized
404: Not Found