Why not use the library Hapi Boom instead of creating your own APIError class ???
Does anybody try Boom instead of the class ErrorApi.js?
it's easy to use Boom...um . just delete APIError and do little change