1.0.0 • Published 4 years ago

express-error-codes v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

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