Ext.Ajax.on({ requestexception : function (ajax, xhr) { if (xhr.status == 502) console.log('OMG!); } })