hapi-boom-jsend2.0.0 • Public • Published
hapi plugin to convert boom errors into jsend responses
npm install hapi-boom-jsend
4XX responses created by boom are converted into jsend fail responses. The
statusCode properties are left on the payload, while the others are coerced into jsend properties.
5XX responses created by boom are converted into jsend error responses. The
message properties are left on the payload.
data are added as well.