Fix error responses to be proper for emberjs