replace new Error with carcass.httpError() and also use res.send() instead of res.json()