mcavage/node-restify — pull request #152 by domenic (2012-06-04 16:17:06+00:00)
Title: Send JSON by default for `HttpError`s.

Right now if you happen to use a `HttpError` instead of a `RestError`, you end up sending a string for the body instead of JSON, unless you explicitly specify the body parameter. This change fixes that to default to sending a JSON body containing a `message` field, just like for `RestError`s. You can still override the body manually, of course.