fix(API): Send correct Content-Type with error entities
Merge pull request #573 from bcwaldon/fix-error-ctype

fix(API): Send correct Content-Type with error entities
refactor(API): Wrap everything in data containers