On Dec 15, 3:06 am, MareceK <ma...@tutoky.com> wrote: > Solution: > > error: function (xhr, ajaxOptions, thrownError) { > if(xhr.status == 404) { > // 404 error > }
jQuery.ajax({ type: 'GET', url: "http://picasaweb.google.com/data/feed/base/user/ picasa_non_esistent_user?kind=album&alt=json", dataType: 'jsonp', error: function (xhr, ajaxOptions, thrownError) { alert("error triggered"); if(xhr.status == 404) { alert("User not found"); } } }); It should catch 404, strangely it doesn't do anything. from firebug I could see the 404 returned by picasa yet it doesn't trigger the error function at all.