{"action":"created","issue":{"url":"https://api.github.com/repos/brainsiq/hapi-boom-decorators/issues/4","labels_url":"https://api.github.com/repos/brainsiq/hapi-boom-decorators/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/brainsiq/hapi-boom-decorators/issues/4/comments","events_url":"https://api.github.com/repos/brainsiq/hapi-boom-decorators/issues/4/events","html_url":"https://github.com/brainsiq/hapi-boom-decorators/issues/4","id":123893682,"number":4,"title":"Missing 500","user":{"login":"jsumners","id":321201,"avatar_url":"https://avatars.githubusercontent.com/u/321201?v=3","gravatar_id":"","url":"https://api.github.com/users/jsumners","html_url":"https://github.com/jsumners","followers_url":"https://api.github.com/users/jsumners/followers","following_url":"https://api.github.com/users/jsumners/following{/other_user}","gists_url":"https://api.github.com/users/jsumners/gists{/gist_id}","starred_url":"https://api.github.com/users/jsumners/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsumners/subscriptions","organizations_url":"https://api.github.com/users/jsumners/orgs","repos_url":"https://api.github.com/users/jsumners/repos","events_url":"https://api.github.com/users/jsumners/events{/privacy}","received_events_url":"https://api.github.com/users/jsumners/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/brainsiq/hapi-boom-decorators/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-25T18:28:20Z","updated_at":"2015-12-27T10:49:14Z","closed_at":null,"body":"It's not documented, but Boom has a `.internal()` method for generating a 500 error. It'd be nice to have it in boom-decorators as well."},"comment":{"url":"https://api.github.com/repos/brainsiq/hapi-boom-decorators/issues/comments/167400246","html_url":"https://github.com/brainsiq/hapi-boom-decorators/issues/4#issuecomment-167400246","issue_url":"https://api.github.com/repos/brainsiq/hapi-boom-decorators/issues/4","id":167400246,"user":{"login":"brainsiq","id":287530,"avatar_url":"https://avatars.githubusercontent.com/u/287530?v=3","gravatar_id":"","url":"https://api.github.com/users/brainsiq","html_url":"https://github.com/brainsiq","followers_url":"https://api.github.com/users/brainsiq/followers","following_url":"https://api.github.com/users/brainsiq/following{/other_user}","gists_url":"https://api.github.com/users/brainsiq/gists{/gist_id}","starred_url":"https://api.github.com/users/brainsiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brainsiq/subscriptions","organizations_url":"https://api.github.com/users/brainsiq/orgs","repos_url":"https://api.github.com/users/brainsiq/repos","events_url":"https://api.github.com/users/brainsiq/events{/privacy}","received_events_url":"https://api.github.com/users/brainsiq/received_events","type":"User","site_admin":false},"created_at":"2015-12-27T10:49:14Z","updated_at":"2015-12-27T10:49:14Z","body":"Have looked at this a bit more and not sure wrapping `Boom.internal()` adds anything, as it just passes off to the `wrap` or `create` function (depending on whether you pass an error or not).\r\n\r\nSo I think you could just use the `reply.boom()` decorated function that is already implemented.\r\n\r\n```\r\nreply.boom(500, new Error(), 'message');\r\nreply.boom(500, 'message', {my_data_attribute: 'something'});\r\n```\r\n\r\nAnd there is always `reply.badImplementation('oops')` for generating 500 responses too.\r\n\r\nLet me know if I'm missing anything."}}