# hapijs/boom

HTTP-friendly error objects

Repository: https://github.com/hapijs/boom
Canonical: https://ross.abutalabs.com/products/boom
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2026-08-02T11:59:34+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 8, longevity 100
- inputs: {"age_days": 4981, "days_push": 31, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2923, forks 192 (observed 2026-08-28T04:07:30.286793+00:00)

## What it is
@hapi/boom is a Node.js library for creating HTTP-friendly error objects with status codes, payloads, and formatting helpers. It is part of the hapi ecosystem but works standalone or with any web framework.

## Use cases
- create http error responses with status codes
- standardize error handling in node.js apis
- wrap errors with http status codes
- return json error payloads from rest api
- handle 404 and 500 errors consistently
- error handling for express or hapi apps

## When to choose
- building node.js http apis needing consistent structured errors
- using the hapi framework ecosystem
- you want rich error objects with status codes and payloads

## When to avoid
- non-http error handling where plain Error suffices
- frontend-only projects without a node backend

## Facets
- artifact type: library
- maturity: stable
- function: error-handling, http-server, middleware
- domain: backend, web-development, developer-tools, apis
- platform: -
- tags: http-errors, hapi-ecosystem, error-objects, status-codes, nodejs, javascript

## Member repositories
- hapijs/boom (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:30.286793+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-30T07:33:44.961998+00:00, confidence not recorded.
  - readme: https://github.com/hapijs/boom (fetched 2026-08-28T04:07:30.286793+00:00, sha 40d71d0a3674)
  - registry_npm: https://registry.npmjs.org/boom (fetched 2026-08-29T09:49:17.177862+00:00, sha eb23ccc90e5d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
