Preparing for system design interviews?  Try bugzed.com →

create-http-error

JSON →
library 1.0.3 ·javascript deprecated
verified Jun 4, 2026

This package (version 1.0.3) provides a simple factory function to create HTTP error objects with a given numeric status code. It was last released in an earlier era and is not actively maintained. The error object includes the code, standard HTTP message, and optional custom message or properties. It exposes `.toString()`, `.toJSON()`, and a `.codes` property. It only supports CommonJS (require) and is intended for Node.js environments. No releases have been made in years, and the package may be considered stable but deprecated in favor of more modern alternatives like 'http-errors' or 'http-errors-promise'. Usage with ESM (import) may fail without a wrapper.

total hits 12
actors 4 distinct systems
last hit 21d ago human
GPTBot
3
Amazonbot
3
Humans
3

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇬🇧 United Kingdom · 🇫🇷 France · 🇨🇦 Canada