Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6609111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:40:52+00:00 2026-05-25T19:40:52+00:00

I have an http API which (shockingly new technique) reacts on different errors setting

  • 0

I have an http API which (shockingly new technique) reacts on different errors setting different response statuses.

The question is – while using Ext.data.Store with some XMLHttpRequest-inside proxy, what is the best way to handle this statuses? As far as I can understand, “load” event does not pass status directly, as well as “exception”, and the last one actually doesn’t even trigger when 4** status is received.

So, as I can see from code xhr instance is hidden from Ext.data.store, so the question is also can be stated as “What is best extjs practice to handle low-level xhr object”.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:40:52+00:00Added an answer on May 25, 2026 at 7:40 pm

    There is no exception event on Ext.data.Store. Instead, it is Ext.data.proxy.Server and its sub-classes (like Ext.data.proxy.Ajax) that define an exception event. Listeners receive a response object which includes the http status.

    Depending on your setup, you can register a listener on the store’s proxy, or – if your store uses a model – on the model’s proxy.

    This test setup worked for me on Chrome 14 and FF 6:

    var store = Ext.create('Ext.data.Store', {
        fields: [ 'field1', 'field2'],
    
        proxy: {
            type: 'ajax',
            url: 'api/data.json',
            reader: {
                type: 'json',
                root: 'data'
            },
            listeners: {
                exception: function(proxy, exception, operation) {
                    console.log(response.status);
                }
    
            }
        },
    });
    store.load(); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a REST API which accepts XML in HTTP Posts. When I send
I have an HTTP server which is in our internal network and accessible only
I have an HTTP server that returns large bodies in response to POST requests
I have the following code: http://www.nomorepasting.com/getpaste.php?pasteid=22615 Which is called by the javascript mentioned in
I have a site that has a simple API which can be used via
I'm trying to use an API which sends a fax. I have a PHP
We have a REST API which clients routinely POST and PUT data to. When
We have an existing website which currently uses v2 of the google maps api
Currently I have an Area in my ASP.NET MVC 2 project call 'API', which
I have successfully created a PHP REST API which resides on my server. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.