When we make any AJAX request, what are the different possibilities for the response failing and how do we verify it on client-side? Is it purely based on "response.status" I am using DOJO and see one place where I am getting response from the server, but response.status is "undefined" (dojo.xhrPost response)
More importantly technically speaking from the backend/server-side, do we have to explicitly do/pass something to indicate response failure on the client-side OR is that automatically handled (assume Java in the backend)?