Your server should return the appropriate HTTP status code for the error handler to be called (404, 400, etc). If it returns a 200 then the success handler will be called.
The third parameter to a findAll or findOne call is the error handler.
Leave a comment on Curtis Cummings's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic