I'm using Canjs on my app and when i call my function, the error callback is being called, but I'm getting a 200 response.
var factory = new DTO(Factory);
factory.save(
function (data) {
self.element.html(can.view('viewDTO', {}));
},
function (error) {
console.log(error);
}
);
What am I doing wrong?