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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:38:20+00:00 2026-06-01T01:38:20+00:00

I am having a funny situation which I am not sure if it is

  • 0

I am having a funny situation which I am not sure if it is my fault, or jQuery’s fault, and therefore I would like to consult you guys.

Currently I am doing an Ajax call, which returns a 403 status code. But the string accompanying that 403 is different from the standard.

It returns 403 access denied but according to specification it should be 403 Forbidden.

I know how to get a 200 statuscode from the server, the question is more in how to handle this situation.

This is my Ajax jQuery code, and it does not get in any of the console.log() situations.

this.get = function(){
    var callUrl = self.url + "&limit=" + self.limit + "&page=" + self.page;
    callUrl += self.getFilterQuery();
    callUrl += "&callback=?";
    console.log(callUrl);
    $.ajax({
        url: callUrl,
        dataType: 'json',
        success: function(response){
            console.log(response);
        },
        statusCode: {
            403: function(response){
                console.log('error');
                console.log(response);
            }
        },
        error: function(response){
            console.log(response);
        }
    });    
}

Note: URL is correct, I can get a 200 statuscode, but I would like to handle the 403 access denied. How do I solve this?

  • 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-06-01T01:38:21+00:00Added an answer on June 1, 2026 at 1:38 am

    Looks like this call is actually made not using an XHR request but via JSONP. (“callback=?” in your URL) – for JSONP requests, status code information are not available. You will need to make sure that always a valid response is send.

    See http://api.jquery.com/jQuery.ajax/

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

Sidebar

Related Questions

I'm doing a simple redirect after calling OAuth2::retrieveAccessToken() with Play Framework. I'm having funny
ok am having a funny problem here, scenario is like this: Intent i of
Having volunteered to maintain a stagnant CPAN package (GnuPG) I'd like improve the install
Having just pulled my hair off because of a difference, I'd like to know
Having an assembly which I cannot modify (vendor-supplied) which have a method returning an
Having a list of data object and something visual to represent each, where would
Experts, I'm having issue when sending emails out. Currently, I have a feedback form
I'm having a problem which I don't know what to search in google. Basically
I found a funny issue with DB2 v9.7 and the SQL LIKE operator. Check
I'm having a funny issue with map_async that i can't figure out. I'm using

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.