1.0.0 • Published 4 years ago
express-error-codes v1.0.0
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
1.0.0
4 years ago