View Full Version : How to get the HTTP status code on AjaxProxies calls?

17 Feb 2011, 11:18 AM
When I make a proxy call how can I check the HTTP status code (for status code such as 302, session timeouts) when the call returns? I am using Ext.data.Store and Ext.data.JSONStore objects for loading my stores and I don't see anything in the API that can help me. Any suggestions?

17 Feb 2011, 12:42 PM
I found how to do this, so I thought I'd put up my result.

scope: this,
callback: function(records, operation, success){
var httpStatus = operation.response.status;


// console.log(httpStatus);
// console.log(records);