Get status code from the current request

0

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

 });
    
asked by anonymous 04.09.2015 / 17:51

0 answers