{"library":"popsicle-status","type":"library","category":null,"description":"Popsicle Status is a middleware for the `popsicle` HTTP client library, designed to automatically reject HTTP responses with undesirable status codes. It provides a simple function, `status(min?: number, max?: number)`, which returns a middleware that validates a response's status code against a specified inclusive `min` and exclusive `max` range. By default, it rejects any status outside the 200-399 range (i.e., anything not a 2xx or 3xx success/redirection code). The current stable version is `3.0.0`. This library is actively maintained, with releases primarily aligning with major updates to its peer dependencies, `popsicle` and `servie`, to ensure compatibility. Its key differentiator is its seamless integration into the `popsicle` middleware chain, simplifying error handling by transforming invalid HTTP responses into thrown errors, making control flow clearer than manual status checks.","language":"javascript","status":"active","version":"3.0.0","tags":["javascript","popsicle","plugin","status","http","response","typescript"],"install":[{"cmd":"npm install popsicle-status","imports":["import { status } from 'popsicle-status';","import type { Middleware } from 'popsicle';"]},{"cmd":"yarn add popsicle-status","imports":[]},{"cmd":"pnpm add popsicle-status","imports":[]}],"homepage":null,"github":"https://github.com/blakeembrey/popsicle-status","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/popsicle-status","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/popsicle-status/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}