# jshttp/http-errors

Create HTTP Errors

Repository: https://github.com/jshttp/http-errors
Canonical: https://ross.abutalabs.com/products/http-errors
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-06-01T02:53:49+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 85, release rhythm 25, longevity 100
- inputs: {"age_days": 4377, "days_push": 93, "days_rel": 286, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1559, forks 115 (observed 2026-08-28T04:05:03.416929+00:00)

## What it is
http-errors is a Node.js library for creating HTTP error objects with status codes, messages, and custom properties. It integrates easily with frameworks like Express, Koa, and Connect for consistent error handling.

## Use cases
- create http error objects in nodejs
- attach status codes to errors in express
- send proper 404 and 401 errors from middleware
- wrap fs errors as http errors
- check if an error is an http error
- customize error messages for api responses

## When to choose
- you build Express, Koa, or Connect apps and need structured HTTP errors
- you want consistent status codes and expose flags on errors
- you need to extend existing error objects with HTTP properties

## When to avoid
- you are not building HTTP servers or APIs
- your framework already provides its own error creation utilities

## Facets
- artifact type: library
- maturity: stable
- function: error-handling, http-server, middleware
- domain: backend, web-development, apis
- platform: -
- tags: http-errors, express, koa, connect, nodejs

## Member repositories
- jshttp/http-errors (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:03.416929+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:29:50.603621+00:00, confidence not recorded.
  - readme: https://github.com/jshttp/http-errors (fetched 2026-08-28T04:05:03.416929+00:00, sha 640bcbbd42df)
  - registry_npm: https://registry.npmjs.org/http-errors (fetched 2026-08-29T11:29:48.760782+00:00, sha ca32e5f30004)
- Data as of 2026-08-30T08:39:29.467469+00:00.
