feat(API): Return error entities with unit 406s
fix(API): Serialize nil error properly
feat(API): Return error entities with unit 500s
test(API): Check ctype in assertErrorResponse
feat(API): Return error entities from all 404s
feat(API): Always send error entities from machines resource