UNPKG

sharp-error-handler

Version:

an error handler that integrates with Hapi/boom to manage all server errors through JSON file

12 lines (10 loc) 193 B
{ "invalidId": { "statusCode": 400, "message": "This Id is invalid" }, "notAuthorized": { "statusCode": 403, "message": "You're not authorized to access this item" } }