According to jQuery :
When an HTTP error occurs, errorThrown receives the textual portion of
the HTTP status, such as “Not Found” or “Internal Server Error.”
Question:
If so , Why does it return an undefined error code?
p.s. ( I know I can get the details for not found from the jqXHR obj – but still – I want an answer for the errorThrown part).
It appears that the version of jQuery you’re using doesn’t support that argument. If use jQuery 1.5.2 in jsFiddle your code will return
NOT FOUND.