I'm using jaubourg's jquery-jsonp module to fetch data from a different domain than my site is on. I'm using this module since jQuery's ajax function doesn't support error handling for JSONP requests.
When I make a request using the jsonp function of this library to a non-existing URL, the error callback function is called, but I can't see how I can retrieve the HTTP error code, to see what went wrong.
According to the documentation, the only data available in the error callback function is the xOptions object that defines the request, and a textStatus string which is either "error" or "timeout". In my case it's "error", but I can't see how I can see which error has happened.