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 7493341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T16:54:07+00:00 2026-05-29T16:54:07+00:00

I do a JQuery Ajax call with the error option set. In my error

  • 0

I do a JQuery Ajax call with the “error” option set. In my “error” method I would like to handle an HTTP 408 differently from a normal HTTP 500.

The problem is that the jxhr.statusCode is 0 and the “status” value is simply “error”! But in firebug I can see that the service definitely returned status code 408.

Why would the jxhr.statusCode be 0? Is there another way to identify an HTTP 408 error?

My error handler code looks as follows (for a 408 error the code just continues into the ‘else’ block):

error: function (jxhr, status, error) {
var $message = element.next().find('.loadmask-msg-label');
if (jxhr.status == 401)
  $message.html(settings.unauthorizedMessage);
else if (jxhr.status == 408)
  $message.html(settings.timeoutMessage);
else
  $message.html(settings.errorMessage);
  • 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-29T16:54:10+00:00Added an answer on May 29, 2026 at 4:54 pm

    The problem was FIREFOX. In any browser except Firefox the status code is 408. In Firefox the status code is 0, and no response headers are returned. Also, Firefox seems to re-request 10 times because of the 408 response, I have no idea why! And this is only for an HTTP 408 response.

    In the end we had to return a HTTP 500 error with custom headers.

    Dirty 🙁

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting an error in an ajax call from jQuery. Here is my
How would you access the cache from a jQuery ajax call? I'm using jquery
I have a jQuery AJAX call with type:'GET' like this: $.ajax({type:'GET',url:'/createUser',data:userId=12345&userName=test, success:function(data){ alert('successful'); }
I am calling a .txt file from a jquery ajax call. It has some
My jQuery ajax call is failing with an undefined error. My js code looks
I would like to clarify how browser scripting (such as javascript/jquery) differs from server
I am using a jQuery Ajax control from this site http://abeautifulsite.net/2008/03/jquery-file-tree/ I have it
I have a jQuery ajax call that looks like this: $.ajax({ type : 'GET',
I am making a jquery ajax call to an mvc controller. I want to
Let's say I have the following jQuery AJAX call: $.ajax({ type: POST, url: MyUrl,

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.