Provides a subclass of SmartError for HTTP errors with status codes, messages, codes, and extra fields. Current stable version 4.0.1 (released 2021 or earlier). Low release cadence. Differentiator: built-in mapping of HTTP status codes to messages (e.g., 400 → 'Bad request') and support for custom error codes and extra data. Requires peer smart-error ^3.0.0.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Package ships TypeScript types; default export only. In CJS environments, use require('http-smart-error').default
Second argument is custom message; third is custom error code string. All after code are optional.
Shows creating HTTP errors with default status messages and custom messages/extras.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.