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
8
votes
3 answers

403 forbidden to localhost root MAMP Pro v2.2

I'm getting a 403 forbidden error on my localhost root. I think it's an apache error. I'm on a MBP OSX 10.7, MAMP Pro 2.2. apache log: client 127.0.0.1] Directory index forbidden by Options directive:/Applications/MAMP/htdocs/ I've tried, with…
user2451714
  • 81
  • 1
  • 1
  • 3
7
votes
3 answers

Why am i getting a 403 forbidden when using a img tag?

When trying to use I am getting a 403 error. Here is the page which is requesting: http://laponderosakennels.com/beagles/memories/ginger/index.html What is going on here am I just tired?
CodingIsAwesome
  • 1,946
  • 7
  • 36
  • 54
7
votes
1 answer

What is HTTP status code for a disabled REST API feature?

We have REST API endpoints that all users are free to use and other endpoints that users can use if they have explicitly enabled and paid for some specific feature. What should be the correct status code returned from the paid endpoints if it has…
Ostap Maliuvanchuk
  • 1,125
  • 2
  • 12
  • 32
7
votes
3 answers

Unable to catch 403 in try-catch during fetch

I'm making a put request using ReactJS, however, when I put in the wrong email/password combination, I get this logged on Chrome, even though I'm trying to catch all errors and show them in errorDiv: async connect(event) { try { const…
Muhammad Ali
  • 3,478
  • 5
  • 19
  • 30
7
votes
1 answer

Mqtt connection gives 403 for aws IOT Pre-Signed URL

I have aws lambda function that generates IOT websocket URL as below. const v4 = require('aws-signature-v4'); const crypto = require('crypto'); const WSSURL = v4.createPresignedURL( 'GET', …
JenuJ
  • 446
  • 5
  • 10
7
votes
6 answers

Azure Storage Emulator 403 Forbidden

Via Nuget, I upgraded WindowsAzure.Storage to 8.1.1. I then downloaded the AzureStorageEmulator 5.1.0.0 client. My connection string: UseDevelopmentStorage=true; I've made no code changes since previously when it was apparently working fine. I…
Tom Gullen
  • 61,249
  • 84
  • 283
  • 456
7
votes
2 answers

403 Error When Using Rvest to Log Into Website For Scraping

I am trying to scrape a page on a website that requires a login and am consitently getting a 403 Error. I have modified the code from these 2 posts for my site, Using rvest or httr to log in to non-standard forms on a webpage and how to reuse a…
mks212
  • 901
  • 1
  • 18
  • 40
7
votes
2 answers

How to make Apache forbid a file only if it exists?

I've been working on this problem for a couple hours no, still with no resolution. In case you don't understand what I'm asking from the title, I'll elaborate. I'm trying to forbid access to certain stylesheets and scripts from Apache, but I only…
Dastur
  • 684
  • 6
  • 23
7
votes
3 answers

cross origin requests are blocked in tomcat 8 with HTTP status code 403

it may seem like a known issue and many questions exist on the topic, however, my situation is very strange. I have a simple web application that is deployed on tomcat 8.0.36. I have configured the CORS…
bekon
  • 305
  • 1
  • 4
  • 12
7
votes
1 answer

AWS S3 gracefully handle 403 after getSignedUrl expired

I'm trying to gracefully handle the 403 when visiting an S3 resource via an expired URL. Currently it returns an amz xml error page. I have uploaded a 403.html resource and thought I could redirect to that. The bucket resources are assets…
7
votes
1 answer

Why do I keep getting a 403 forbidden with PayPal?

I integrated with PayPal using the HTML Forms method for accepting payments on my website. When a user selects PayPal as a payment option on checking out, I redirect them to the PayPal website using HTML Forms as described in the documentation. I do…
TnashC
  • 147
  • 1
  • 3
  • 10
7
votes
4 answers

Google calendar v3 returns 403 Insufficient Permission

I've been trying to access Calendar v3 API with a service account. I have already added the scope https://www.googleapis.com/auth/calendar from the admin console and shared my calendar with that service account's email address. I have also been…
7
votes
1 answer

Understanding htaccess Filesmatch code

I am trying to install drupal in a subdirectory on my bluehost hosted website... It's a HUGE pain I'm thinking the following lines from the .htaccess is the problem. When I currently navigatoe to mysite.com/subdir/install.php I get a 403 error.…
SimaPro
  • 1,164
  • 4
  • 14
  • 28
7
votes
2 answers

OpenURI::HTTPError 403 Forbidden - open paperclip url for asset stored on S3 (fog gem)

I have a call to my documents controller the download action, to serve the client with a downloadable object retrieved from s3. However OpenURI seems to have trouble parsing the url paperclip has stored. This URL is visitable in the browser…
7
votes
6 answers

403 error while getting the google result using jsoup

I'm trying to get Google results using the following code: Document doc = con.connect("http://www.google.com/search?q=lakshman").timeout(5000).get(); But I get this exception: org.jsoup.HttpStatusException: HTTP error fetching URL.…
lakshman
  • 2,641
  • 6
  • 37
  • 63