If `err` has a number property `type`, include it in the response `meta` object.

Also minor refactor to success/error responders