boom

HTTP-friendly error objects.

Latest Version: 10.0.1
hapi-family
Installation:

npm: npm install @hapi/boom

yarn: yarn add @hapi/boom

Module Status:
Version License Node Dependencies CI
10.0.1
hapi helmet github logo
BSD 16, 18, 20 Dependency Status Build Status
9.1.4
hapi helmet github logo
BSD 16, 18, 20 Dependency Status Build Status

F.A.Q.

Q How do I include extra information in my responses? output.payload is missing data, what gives?

A There is a reason the values passed back in the response payloads are pretty locked down. It's mostly for security and to not leak any important information back to the client. This means you will need to put in a little more effort to include extra information about your custom error. Check out the "Error transformation" section in the hapi documentation.