What's an appropriate HTTP status code to return by a REST API service for a validation failure?

I'm currently returning 401 Unauthorized whenever I encounter a validation failure in my Django/Piston based REST API application. Having had a look at the HTTP Status Code Registry I'm not...

Asp.Net web service: I would like to return error 403 forbidden

I have got a web service programmed in c# / asp.net. [WebService(Namespace = "http://example.com/")] [WebServiceBinding(ConformsTo =...

Custom Error 403 Page PHP

I created a .htaccess inside a directory in which I don't want the files to be directly accessed. It works and fires the default 403 page (Access forbidden!) of the Apache server. How can I create...

403 forbidden - Nginx - using correct credentials

I am trying to password protect a directory on my Nginx powered site that contains things like phpMyAdmin, MemcacheMyAdmin, and more admin utilities. This directory is placed in the root of my...

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...

Apache2 virtualhost 403 forbidden?

I'm running ubuntu 13.04 64bit on my desktop, I installed Apache2, MySQL and PHP etc. I wanted to have my web root in /home/afflicto/public_html instead of /var/www. So I went along with this...

Read response headers from image error handler

I have an <img /> element in my page, and it's src attribute is regularly changed by Javascript. When the src attribute changes, my code on the servers checks : is the user logged in ? does the...

Access denied to SQS via AWS SDK

I'm currently working on a website developed with Symfony2 and I need to send messages in an Amazon SQS. In order to do that I added to my composer.json: "aws/aws-sdk-php": "2.4.*" Then when I...

API Gateway CORS: no 'Access-Control-Allow-Origin' header

Although CORS has been set up through API Gateway and the Access-Control-Allow-Origin header is set, I still receive the following error when attempting to call the API from AJAX within...

Making golang Gorilla CORS handler work

I have fairly simple setup here as described in the code below. But I am not able to get the CORS to work. I keep getting this error: XMLHttpRequest cannot load http://localhost:3000/signup....

No 'Access-Control-Allow-Origin' header - Laravel

XMLHttpRequest cannot load http://myapi/api/rating. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource....

Cloudfront returns 403 error when I call it but the using api gateway url which is attached to cloud front returns the right result

I have a problem with cloudfront. Here is my scenario: I have a beanstalk url pointing to my get service in java. So far so good and I can see the result by calling : beanstalk url/users/1 I...

How do I resolve the CORS error in Yelp API call?

I'm trying to call the Yelp Fusion API using AJAX but I'm getting the following error below. Could someone help me figure out what's going on here? api.yelp.com/v3/:1 Failed to load resource: the...

not show custom error page when request failed

When i catch a error in nuxt/axios plugin, i call the error function provided in context to show error page, but except the 404 error, when the request failed with other status code(ex: 403), the...

Anonymous caller does not have storage.objects.get

On Google App Engine (GAE) written in Python. I am trying to issue an http post to cloud-speech-to-text api and using URI audio source (Google Cloud Storage Bucket Objects). I am using the...

Requets return only 403 (forbidden) even if csrf is disabled. Spring Security Jwt

These are the classes I created for authentication using jwt. import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import...

Pub/sub request authentication as a service (or by service key) instead of Auth0 temporary key

Problem Statement : I want to use REST based requests in google pub/sub(using org.apache.http.client.methods.HttpPost) for publishing and subscribing to a message, here I have the following...

Firebase Cloud Storage: resource: the server responded with a status of 403 ()

I make a simple audio recording web app using Firebase Hosting. I would like to record audio on browser and upload it to Cloud Storage. When I deploy and access my app, I can record audio. However...

I can't edit file htaccess in wordpress

My website doesn't access wp-admin. it's 403 Forbidden. So i need to edit file htaccess. But when I changed, I go back to check it out. Everything is the same.

How to point Springdoc Swagger UI to my own YAML file instead of the auto-generated one?

I have created a Spring Boot RESTFul microservice and for the documentation, I have created a swagger.yaml file but I don't know how to run that file. To create the swagger.yaml file, I have used...

Received status code 403 from server: Forbidden Disable Gradle 'offline mode' and sync project in ANDROID STUDIO

Could not GET 'https://dl.bintray.com/drummer-aidan/maven/com/afollestad/easyvideoplayer/0.3.0/easyvideoplayer-0.3.0.pom'. Received status code 403 from server: Forbidden Disable Gradle 'offline...

Could not resolve com.google.firebase:firebase-messaging:[10.2.1, 17.3.99]

I want to send device-to-device notifications in flutter using OneSignal. I have tried all the things google service update Gradle version update, flutter clean, restart, rebuild In flutter adding...

My Terraform Service Principal gets a 403 access error on Key Vault even though I added an access policy for it

I'm terraforming a Key Vault through Terraform. I'm also adding a secret into that Key Vault. Terraform uses a service principal. This is the error I get : Error: checking for presence of existing...

implementation 'com.hold1:keyboardheightprovider:0.0.9'

This error IS IN A photo editing applications I closed offline gradel mode and it didn't work Knowing and i change the gradel didn't work too that when I click run or trying to upload the APK I...

Failed to install map box in my android app with Received status code 403 from server: Forbidden

Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not resolve com.mapbox.navigator:mapbox-navigation-native:7.0.0. Required by: project :app >...

Axios post request with typescript issue

I am trying to add typescript to my current project, so after using it with Axios post request i am facing an issue. Usecase is that i want to send "email" "firstname" "lastname" and "password" in...

Nginx Php-fpm 7.3 Can't read PHP files from a particular folder

We have a Magento 2 website. For some reason our Nginx/PHP-FPM is unable to read files from MAGEROOT/pub/ folder other than index.php. We are getting the following error in Nginx Log "Unable to...

How to mock JWT token to use it with Mockito and Spring Boot

I have a controller which gives the user a 403 response unless they are authenticated with a JWT token which is passed as a Bearer token via the authorization header. I'm looking for resources on...

React-Admin Simple Refresh JWT Token

I have an react-admin with an auth provider like the below. I want to refresh my token, but I don't know how to do it. I tried to follow this blog post, but my auth is a little different and I...

Configure CORS policy for Spring Cloud Gateway

I have Spring Cloud gateway running on separate server with the following configuration: spring: cloud: gateway: globalcors: cors-configurations: '[/*]': (I also...