hapi uses the boom error library for all its internal error generation. boom provides an expressive interface to return HTTP errors. Any error returned via the reply interface is converted to a boom object and defaults to status code 500 if the error is not a boom object.
jordanpapaleo/hapi-demo
Demo code for BeerJS:Tahoe using Hapi and Node to build restful endpoints
JavaScript