Questions tagged [http-status-code-401]

Similar to 403 Forbidden, but specifically for use when authentication is possible but has failed or not yet been provided. The response must include a WWW-Authenticate header field containing a challenge applicable to the requested resource.

The request has not been applied because it lacks valid authentication credentials for the target resource.

The server generating a 401 response MUST send a WWW-Authenticate header field1 containing at least one challenge applicable to the target resource.

If the request included authentication credentials, then the 401 response indicates that authorization has been refused for those credentials. The user agent MAY repeat the request with a new or replaced Authorization header field2. If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user agent SHOULD present the enclosed representation to the user, since it usually contains relevant diagnostic information.

See

1109 questions
3
votes
2 answers

Safari browser won't display Error 401 page

I'm using Apache 2 and have a custom 401 page, in httpd.conf ErrorDocument 401 /error/unauthorized.html When I access a protected resource, all browsers show the basic http authentication dialog. If I click "cancel", all browsers but Safari (v3 and…
Grant
  • 2,838
  • 1
  • 19
  • 17
3
votes
2 answers

HttpWebRequest 401 with NTLM Authenticiation

I am having difficulties authenticating a HttpWebRequest to a webserver. The response I am receiving is simply a 401. I've made sure I set the credentials correctly on the C# side, and IIS is correctly set to allow NTLM authentication. I don't…
cgatian
  • 22,047
  • 9
  • 56
  • 76
3
votes
1 answer

Sharing ASP.NET Authentication between two applications

I have two web applications ASP.NET running on the same web server IIS 7.5/.NET 4.0. The first app makes async calls through jquery to the second app, which acts as web service backend (connected to a database server). The two applications will be…
Alex
  • 127
  • 7
3
votes
1 answer

asp.net 4.0 Custom 401.2 not Authorized custom page

I successfully implemented role based authorization in ASP.NET. When a person does not have the needed role he gets to see an error page for 401.2 not authorized. What I would like to accomplish now is to have a custom 401 page in my application…
georgian98
  • 85
  • 8
3
votes
4 answers

Invalid API Key in OpenWeatherMap (Error 401)

I'm trying to make an API call to OpenWeatherMap. When I execute flutter run in the terminal, the response.statusCode prints 401 which is code for Invalid API Key, although I have generated the API Key in an appropriate way and it is active and…
user16746875
3
votes
1 answer

"401 Error Code" using google script app fetch post

Hi everyone recently i have been trying to do a fetch post in app script, from an api called salesbinder(inventory system), i have managed to fetch and pulls all inventory data down, however i have been struggling to post and add document to it and…
3
votes
0 answers

Azure DevOps: 401 - Uh-oh, you do not have access

My apologies to ask this question again, I'm aware that it has been asked before, but the solutions to those question don't work for us. Some context When I invite users to either my organization or project they don't have access and get the error…
3
votes
1 answer

How to prevent user to access images in multiple directories via the url

I am using .htaccess to prevent user to access images through url. Thanks to this question, I could prevent users to access .js files. RewriteEngine ON RewriteRule ^frontend/assets/(?:js) - [R=401,NC,L] However, when I applied the same rules in…
Kyv
  • 615
  • 6
  • 26
3
votes
0 answers

"Http 401 Unauthorized" when login through webdriver running browser

In the concern website, (https://zoom.us/signin) when I login in manually through browser, opened with geckodriver webdriver : browser = webdriver.Firefox() #(Just an example, real code at the end of the answer) It first prompts for captcha (which…
3
votes
1 answer

Prevent logging errors to console when using Axios interceptor

I've implemented axios interceptor in my VueJs project, which looks like this: axios.interceptors.response.use( async (response) => { return response; }, async (error) => { const originalRequest = error.config; …
3
votes
0 answers

"The remote server returned an error: (401) Unauthorized." When trying to access Exchange via Webdav

I asked another question earlier about a 400 error. (http://stackoverflow.com/questions/6099557/the-remote-server-returned-an-error-400-bad-request-when-trying-to-access-e) While waiting for responses, I tried a few other things and have now come…
Atari2600
  • 2,643
  • 2
  • 20
  • 18
3
votes
2 answers

maven deploy:deploy-file working but maven deploy not working

I'm trying to deploy maven artifacts into Artifactory repository using command : maven deploy . I followed instructions from Maven documentation and JFrog…
Hamza
  • 69
  • 1
  • 7
3
votes
1 answer

Angular, get status code value from post request

I want to get the StatusCode value from the post request in order to use it in my component. This is what I have done: Api call: Login(user: User) { return this.http.post(apiUrl + 'account/Login', user).subscribe(); } Method in component: …
Storm
  • 557
  • 1
  • 8
  • 25
3
votes
0 answers

401 error when trying to add query parameters MKM API 2.0, OAuth 1.0

I use MKM API 2.0 to get information about cards. All requests without query params work but when I try with these params, it doesn't work. Here is the…
Axelmov74
  • 33
  • 4
3
votes
1 answer

Spring Security 401 error with custom authentication filter

We're developing a website using Java and Spring. As a server, we're using a custom server based on Tomcat 6.0.29. In the web.xml file there is this custom authentication filter declared:
Krt_Malta
  • 9,265
  • 18
  • 53
  • 91