This may be a really basic question, but I'm having difficulty figuring it out.

I'm using the method to post user and login data to an API. When the results are good, the "success" function provided to the post method is called. However, when the password is incorrect, nothing happens. I would prefer to notify the user that the password was unsuccessful.

The comments on the documentation page make reference to a ".ajaxError()" method, and the example refer to a ".error" used as a "promise", but still stuff is getting a bit complex for my taste. I want a simple approach to determine if the form has been processed but the success function has not been called.

Any help? Is there a canonical approach?