boom-to-json-api
Formats a Boom error according to the JSON API spec
Installation
npm install --save boom-to-json-api
Usage
const Boom = ;const convert = ; const err = Boom;const body = ; console;// {// errors: [// {// status: '403',// title: 'Not Found',// detail: 'Sorry, nothing to see here!'// }// ]// }