HTTP-friendly error objects.

Latest Version: 9.1.4

npm: npm install @hapi/boom

yarn: yarn add @hapi/boom

Module Status:
Version License Node Dependencies CI
hapi helmet github logo
BSD 12, 14 Dependency Status Build Status


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.