{"library":"http-statuses","type":"library","category":null,"description":"Node.js wrapper for HTTP status codes and error creation. Current stable version 0.2.0. Provides an object-oriented interface to access HTTP status codes by name (e.g., BAD_REQUEST, OK), each containing `code`, `message`, and a `createError()` method to generate Node.js Error instances that include the full status data. Lightweight alternative to packages like `http-status` or `http-status-codes`, with built-in error construction support.","language":"javascript","status":"active","version":"0.2.0","tags":["javascript","node.js","http","status","response","error","code"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install http-statuses","imports":["const HTTP_STATUSES = require('http-statuses');","HTTP_STATUSES.BAD_REQUEST","HTTP_STATUSES.BAD_REQUEST.createError('message')"]},{"cmd":"yarn add http-statuses","imports":[]},{"cmd":"pnpm add http-statuses","imports":[]}],"homepage":"https://github.com/vedi/http-statuses","github":"https://github.com/vedi/http-statuses","docs":null,"changelog":null,"pypi":null,"npm":"http-statuses","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}