I have a request made by JqueryFileDownload that when error occurs the server returns me different types of status. I need to act on the client according to these errors. Unlike the jquery ajax I can not get the fileDownload to receive the current status of the request. I would like to know if there is any way via javascript to get this status. Remembering that the call will continue to be made by fileDownload .
$.fileDownload(url)
.done(function () {
jSuccess("com sucesso!", "Sucesso");
})
.fail(function () {
var erro = //quero pegar o status aqui
});