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
2
votes
0 answers

NGROK returning error 401 to slack making POST request

So I am trying to setup a relatively simple interactive slack bot using the old API. I've set up the ngrok server according to the documentation provided by slack and that runs fine. When I try to pass the app.py program to it, however, it returns…
Philip A
  • 21
  • 2
2
votes
1 answer

coinbase api always 401 unauthorized

I have waited faithfully for well over 48 hours since generating api keys as suggested and no matter what I do, every coinbase api call gives 401 Unauthorized I have checked basic non-authentication required calls like /time and /exchange_rates and…
2
votes
1 answer

410 generated url with parameters

i have list of url pattern similar like…
2
votes
3 answers

E*Trade API frequently returns HTTP 401 Unauthorized when fetching an access token but not always

Summary I have written a simple C# .NET Core application to authenticate against the E*Trade API using OAuthv1 with the intention of fetching stock quotes. I am able to authenticate and get a request token, redirect to the authorization page and…
CAS
  • 125
  • 1
  • 9
2
votes
1 answer

401 error after successful login using browser

Using my browser I point to a URL and I am prompted with a username/password dialog. I enter my username/password and I get my webpage. I get a 401 error, however, when using curl: curl --anyauth --user "$USERNAME:$PASSWORD" $URL wget: wget…
jsf80238
  • 1,577
  • 2
  • 11
  • 24
2
votes
1 answer

.htaccess AuthType Basic FilesMatch all but maintenance.html for 401 and 403

We are doing some major work on our site and we want to restrict access to all files except a maintenance page. We want all users to be directed to that page if the cancel or fail the authorization request. ErrorDocument 401…
JWest
  • 55
  • 4
2
votes
0 answers

Is there a way to affiliate a script with a certain organization?

I want to use a script to automate the completion of a google form, but this form can only be filled out by members of my organization: when the script runs, it brings up an 401 error. If I run the script on a test form, it works just fine until I…
2
votes
0 answers

CouchDB _all_dbs 401 Unauthorized 'Solution'

So, this happen on my windows 10 machine, CouchDb 3.1.0 and Postman 7.29.1. During a DB course class i couldn't do the same as my teacher and access: http://127.0.0.1:5984/_all_dbs was returning a 401 error: { "error": "unauthorized", …
KnightWSN
  • 21
  • 4
2
votes
1 answer

I am getting StatusCode: 401 "Unauthorized" in a HttpClient.PostAsync (C#)

I am trying to use an Api Rest (IGDB) making an Http Post Request with HttpClient; this request needs to have a key and a body. I am providing the key in HttpClient.DefaultRequestHeaders.Authorization, but I am getting a 401 status code, I know that…
Jaime Santos
  • 437
  • 2
  • 10
  • 21
2
votes
2 answers

Displaying a useful message when redirected to FormsAuthentication logon page with ASP.NET MVC

I want to make a custom AuthorizeAttribute that includes a Message property. The problem is, my FormsAuthentication redirects to the specified loginUrl. How can that View get access to the attribute's Message property? for example, I have this…
2
votes
2 answers

Alamofire: 401 HTTP status code error handling in swift

Actually I need to handle http status 401 on token expiration. I am using Alamofire in a main class DataProvider : NSObject and in viewControllers I am using callback function for every service. How can I handle response.statusCode in Alamofire…
Tekhe
  • 149
  • 1
  • 12
2
votes
0 answers

PUT and DELETE in RESTful WCF Service cause 401 Unauthorized error

I have a RESTful web service in IIS 7.5 that is working just fine in our Development environment. Now we have deployed to a QA environment and we are getting 401 errors only on the PUT and DELETE verbs. I have read a lot about 405 errors, but not…
Corey Burnett
  • 7,312
  • 10
  • 56
  • 93
2
votes
2 answers

Getting error while sending email from GCP composer airflow

I am trying to configure email but getting following error. when running task getting following error: - I am using Python3 with airflow 10.3 versions in GCP Composer need help. My airflow.cfg [email] email_backend =…
2
votes
2 answers

How to prevent browser to invoke Digest auth popup and handle 401 error using Jquery?

I need to send authorization request using digest auth. I have successfully implemented this using jquery. However when I get 401 error digest auth browser popup is opened and jquery ajax error callback is not called.
2
votes
1 answer

Silverlight application fails to access clientaccesspolicy.xml and crossdomain.xml with with Http-error 401

We tried to consume our own webservice from within a Silverlight application and we always got this error: An error occurred while trying to make a request to URI 'http://blablabla:7777/blabla.svc'. This could be due to attempting to …
HarryK
  • 131
  • 2
  • 8