Top "Http-status-code-401" questions

Similar to 403 Forbidden, but specifically for use when authentication is possible but has failed or not yet been provided.

Using RoboSpice is there a way to get the HTTP Error Code out of an exception?

I am writing an application that uses RoboSpice. In the request listener onRequestFailure( SpiceException arg0 ) is there a way to …

android http-status-code-401 robospice
Handling Authentication in Okhttp

I'm using OkHttp 2.3 with basic authentication requests, according to OKHttp docs, it automatically retries unauthenticated requests, but whenever I provide …

android authentication http-status-code-401 okhttp okio
Return 401 from WCF service

How can I return a HTTP 401 from a WCF service?

http wcf http-status-code-401
Authorization has been denied for this request

I have created a webapi with Basic OAuth and a mobile app using ajax to access the api. I set …

asp.net-web-api http-status-code-401 unauthorized
401 instead of 403 with Spring Boot 2

With Spring Boot 1.5.6.RELEASE I was able to send HTTP Status code 401 instead of 403 as described in How let spring …

java spring spring-boot spring-security http-status-code-401
Problems with external visibility of Flask web-server

I have managed to to install flask and run the hello-world script: from flask import Flask app = Flask(__name__) @app.…

python flask http-status-code-401
Spring Boot 2.0.3 Oauth2 Security: Getting 401 error even when using access token in header

I'm creating a spring boot 2.0 application and trying to enable oauth2 security. I have Auth server and Resource server in …

java spring-boot spring-security-oauth2 http-status-code-401
Friendly HTTP 401 Status Code Message?

I'm a developer not a wordsmith and as such I'm stuck. We have a subscription based site whereby users may …

usability http-status-codes http-status-code-401
Custom 401 page not prompting for credentials on nginx

I have a part of my website protected by auth_basic : location / { auth_basic "Authorization Required"; auth_basic_user_file .…

nginx basic-authentication http-status-code-401
How to prevent IIS7 for handling HTTP status code 401?

I'm working my ASP.NET MVC 2 project. I create exception filter for catching unauthorized access exception that occur when user …

asp.net-mvc-2 iis-7 exception-handling http-status-code-401