serviejs / Popsicle Status
Licence: mit
Popsicle middleware for rejecting responses with bad HTTP statuses
Programming Languages
typescript
32286 projects
Popsicle Status
Popsicle middleware for rejecting responses with bad HTTP statuses.
Installation
npm install popsicle-status --save
Usage
import { status } from "popsicle-status";
const middleware = status();
const res = await middleware(req, send);
status(min?: number, max?: number)
Default status codes of min 200
(inclusive) and max 400
(exclusive).
TypeScript
This project is written using TypeScript and publishes the definitions directly to NPM.
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].