3

Is there a way to read the HTTP-substatus of the server's response to a jQuery ajax() call ?

As mentioned here : http://api.jquery.com/jQuery.ajax/#jqXHR, the main HTTP status is found in the status attribute on the jqXHR, returned in the error callback. However, it has no attribute for the substatus.

Context : I'm working with file-uploads to IIS. IIS returns a 404 Status with substatus 13 when the file is too large, which I want to catch in the front-end to display the correct message to the user.

4

0 回答 0