Add error marshalling for different error cases

- default error type now marshals correct json as well
- httpError with no child errors returns default content