Questions tagged [http-status-code-403]

The 403 or "Forbidden" error message is a HTTP standard response code indicating that the request was legal and understood but the server refuses to respond to the request.

A 403 Forbidden may be returned by a web server due to an authorization issue or other constraint related to the request. File permissions, lack of encryption, and maximum number of users reached (among others) can all be the cause of a 403 response.

2271 questions
11
votes
5 answers

Google Translate API text-to-speech: http requests forbidden

I am making a language learning web app that when you hover over the word, it pronounces it for you. I'd like to access the native speaker translations from Google Translate API. I've found this resource which gives…
11
votes
2 answers

Why am I getting a 403 error when running Locust?

I am using Locust (python) to load test on a Django web app. I keep getting a 403 error when I run my script. Here is the code: from locust import HttpLocust, TaskSet def index(l): l.client.get("/") def login(l): …
atkawa7
  • 461
  • 1
  • 6
  • 13
11
votes
5 answers

Wampserver 403 on named virtual hosts outside of /www

Wampserver tells me accessed denied when I try making a virtual host outside of the c:/wamp/www/ directory. I can make one fine within that directory. Even making a symbolic link to the folder works, but I would rather not have to use symbolic…
Moss
  • 3,695
  • 6
  • 40
  • 60
10
votes
4 answers

jqXHR - http-status-code-403 (but the statuscode is 0)

i get the statuscode 0 ... but it is the code 403. Can someone tell me what the problem is? JQUERY var jqxhr = $.ajax({ url: 'http://gdata.youtube.com/feeds/api/users/bernd/favorites?alt=json', dataType: 'json' …
Peter
  • 11,413
  • 31
  • 100
  • 152
10
votes
1 answer

Distinguishing HTTP status code 403 and 409 in practice (or 400)

Even after reading many documents, books, spec I couldn't 100% be certain whether I should use http status code 403 or 409 in my case. Some argue that 403 should be used only with an authorization issue, but seeing twitter's api using 403 for update…
10
votes
5 answers

Keycloak infinite redirect

We are using Keycloak 2.3.0.Final and we are using the Javascript adapter that is available at /auth/js/keycloak.js. The application that is using this adapter is an React+Redux application but that would not matter. When we go through the auth…
10
votes
2 answers

Django - custom 403 template

I'm trying to use my 403, 404, 500 custom templates in Django 1.5 . 404 and 500 work perfectly, but 403 still showing me the built-in Django 403 template. I put all three templates in the root template directory in my project. They are named :…
arnon cohen
  • 485
  • 1
  • 5
  • 15
10
votes
4 answers

Symfony on Heroku: 403 Forbidden You don't have permission to access / on this server

I've successfully deployed my Symfony 2 App to Heroku but now, when I'm trying to access it, I receive the following 403 error: Forbidden You don't have permission to access / on this server. This is the log from…
Aerendir
  • 6,152
  • 9
  • 55
  • 108
10
votes
3 answers

403 forbidden on wordpress index with nginx, the rest of the pages work fine

I'm setting up my blog on a new EC2 instance because one of the sites on the server that's currently hosting it is being DDoSed. I'm having some trouble with nginx, because I can either see all the pages fine but 403 on the index, or see the index…
Alb Dum
  • 1,121
  • 3
  • 11
  • 26
10
votes
3 answers

Difference between http response status code 402 and 403

Friends and fellow users, We have both 402 and 403 http response codes. Though, 402 is reserved for future use. What is (or would be) the difference between these two. Payment not received should be equal to not authorized, shouldn't it? EDIT:I…
rest_day
  • 858
  • 2
  • 13
  • 28
9
votes
2 answers

Android getting response after 403 in HttpClient

I have a code like this: HttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(server); try { JSONObject params = new JSONObject(); params.put("email", email); StringEntity entity = new…
skayred
  • 10,603
  • 10
  • 52
  • 94
9
votes
2 answers

404 vs 403 when directory index is missing

This is mostly a philosophical question about the best way to interpret the HTTP spec. Should a directory with no directory index (e.g. index.html) return 404 or 403? (403 is the default in Apache.) For example, suppose the following URLs exist and…
9
votes
2 answers

Node.js : POST - Request Method: OPTIONS Status Code: 403 Forbidden

We have the following setup : Front end code : REACT (Hosted using express js) (lets call this www.domainA.com) Backend : .NET WEB API (Hosted in IIS 7.5) (lets call this www.domainB.com) The domain of the FE app is making the request to GET…
Murtaza Mandvi
  • 10,708
  • 23
  • 74
  • 109
9
votes
3 answers

Getting Error "The remote server returned an error: (403) Forbidden" when screen scraping using HttpWebRequest.GetResponse()

We have a tool which checks if a given URL is a live URL. If a given url is live another part of our software can screen scrap the content from it. This is my code for checking if a url is live public static bool IsLiveUrl(string url) { …
9
votes
3 answers

nginx + passenger + rails - 403 forbidden error

I have install Nginx server and configured all needed stuff, but currently I'm having error with 403 forbidden error. Log says: 2010/12/28 17:38:59 [error] 28664#0: *27 directory index of "/home/appuser/test_app" is forbidden, client:…
thesis
  • 2,565
  • 5
  • 26
  • 37