Error is jsonp response
<p>i am using the following code to call the public api to get earthquake data
using ajax and jsonp. i tried different methods but i am unable to resolve the error in the code below</p>

<pre><code>    $.ajax({
        url: "http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojsonp?jsonerror=t&amp;callback=localJsonpCallback",
         jsonp: "localJsonpCallback",
         dataType: "jsonp",

        data:'',
        success: function( response ) 
        {
            console.log( response ); // server response
        }
    });
function t(response) 
 {
     console.log( response );
     }

 function localJsonpCallback(response) 
 {
        if (!response.Error) 
        {
            console.log( response ); 
        }
        else 
        {
            alert(response.Message);
        }
    }
</code></pre>

<p>but i am getting the following error</p>

<p>jquery-latest.js:9803 GET <a href="http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojsonp?j" rel="nofollow">http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojsonp?j</a>…allback&amp;callback=jQuery111108420504496052599_1476799978359&amp;_=1476799978360 403 (Forbidden) and i know these api's are public</p>