How to Fix a 401 Unauthorized Error (2024)

> Error Messages

Check for errors in the URL, reload the page, or delete your browser's cache are just a few ways to fix this error

By

Tim Fisher

How to Fix a 401 Unauthorized Error (1)

Tim Fisher

Senior Vice President & Group General Manager, Tech & Sustainability

  • Emporia State University

Tim Fisher has more than 30 years' of professional technology experience. He's been writing about tech for more than two decades and serves as the SVP and General Manager of Lifewire.

lifewire's editorial guidelines

Updated on July 24, 2024

Reviewed by

Ryan Perian

How to Fix a 401 Unauthorized Error (2)

Reviewed byRyan Perian

  • Western Governors University

Ryan Perian is a certified IT specialist who holds numerous IT certifications and has 12+ years' experience working in the IT industry support and management positions.

In This Article

View All

In This Article

  • How to Fix the 401 Unauthorized Error
  • Other Ways You Might See 401 Errors
  • Errors Like 401 Unauthorized
  • Frequently Asked Questions

The 401 Unauthorized error is anHTTP status codethat means the page you were trying to access cannot be loaded until you first log in with a valid user ID and password.

If you've just logged in and received the 401 Unauthorized error, it means that the credentials you entered were invalid for some reason.

How to Fix the 401 Unauthorized Error

  1. Check for errors in the URL. It's possible that the 401 Unauthorized error appeared because the URL was typed incorrectly or the link that was selected points to the wrong URL—one that is for authorized users only.

  2. If you're sure the URL is valid, visit the website's main page and look for a link that says Login or Secure Access. Enter your credentials here and then try the page again.

    If you don't have credentials or have forgotten yours, follow the instructions provided on the website for setting up an account or resetting your password.

    Do you usually struggle to remember your passwords? Consider keeping them in a password manager so that you only have to remember one password.

  3. Reload the page. As simple as it might seem, closing down the page and reopening it might be enough to fix the 401 error, but only if it's caused by a misloaded page.

  4. Delete your browser's cache. There might be invalid login information stored locally in your browser that's disrupting the login process and throwing the 401 error. Clearing the cache will remove any problems in those files and give the page an opportunity to download fresh files directly from the server.

  5. If you're sure the page you're trying to reach shouldn't need authorization, the 401 Unauthorized error message may be a mistake. At that point, it's probably bestto contact the website owner or other website contact and inform them of the problem.

    The web site owner of some websites can be reached via email at webmaster@website.com, replacing website.com with the actual website name. Otherwise, find a Contact page for specific contact instructions.

Other Ways You Might See 401 Errors

Web servers running Microsoft IIS might give more information about the 401 Unauthorized error, such as the following:

Microsoft IIS 401 Error Codes
ErrorExplanation
401.1Logon failed.
401.2Logon failed due to server configuration.
401.3Unauthorized due to ACL on resource.
401.4Authorization failed by filter.
401.5Authorization failed by ISAPI/CGI application.
401.501Access Denied: Too many requests from the same client IP; Dynamic IP Restriction Concurrent request rate limit reached.
401.502Forbidden: Too many requests from the same client IP; Dynamic IP RestrictionMaximum request rate limit reached.
401.503Access Denied: the IP address is included in the Deny list of IP Restriction
401.504Access Denied: the host name is included in the Deny list of IP Restriction

401 Unauthorized error messages are often customized by each website, especially very large ones, so keep in mind that this error may present itself in more ways than these common ones:

  • 401 Unauthorized
  • Authorization Required
  • HTTP Error 401 - Unauthorized

The 401 Unauthorized error displays inside the web browser window, just as web pages do. Like most errors like these, you can find them in all browsers that run on any operating system.

You can learn more about IIS-specific codes on Microsoft'sthe HTTP status code in IIS 7 and later versionspage.

Errors Like 401 Unauthorized

The following messages are also client-side errors and so are related to the 401 Unauthorized error:400 Bad Request,403 Forbidden,404 Not Found, and408 Request Timeout.

A number of server-side HTTP status codes also exist, like the often-seen 500 Internal Server Error.

FAQ

  • What do I do if I receive a http 401 error in Zoom?

    Double-check the URL to make sure it's accurate, and if so reload the page. If that doesn't work, log out and log back in again, and if you're still having problems try turning off any themes or plugins that may be active. Clearing your browser cache might also fix the issue.

  • What's the difference between 401 Unauthorized and 403 Forbidden?

    A 401 Unauthorized code indicates some sort of issue tied to login credentials for a given web page, while 403 Forbidden errors mean the page has been blocked.

Was this page helpful?

Thanks for letting us know!

Get the Latest Tech News Delivered Every Day

Subscribe

Tell us why!

More from Lifewire

  • How to Fix a 400 Bad Request Error
  • Is Twitch Down... Or Is It Just You?
  • What Does a 403 Forbidden Error Mean? How Do You Fix It?
  • How to Fix a ‘Connection Is Not Secure’ Error
  • How to Fix a 500 Internal Server Error
  • How to Fix It When Hulu Can't Verify Your Email
  • Is ChatGPT Down Right Now... Or Is It Just You?
  • How to Fix Hulu Error Code RUNUNK13
  • 404 Page Not Found Error: What It Is and How to Fix It
  • How to Fix a 408 Request Timeout Error
  • How to Fix ChatGPT's ‘Error in Moderation’
  • How to Fix It When YouTube Comments Aren't Showing Up
  • How to Fix a Connection-Is-Not Private Error
  • Is DoorDash Down... Or Is It You?
  • Is AOL Mail Down... Or Is It Just You?
  • Is Reddit Down... Or Is It Just You?

Newsletter Sign Up

Newsletter Sign Up

Newsletter Sign Up

Newsletter Sign Up

Newsletter Sign Up

We Care About Your Privacy

We and our 100 partners store and/or access information on a device, such as unique IDs in cookies to process personal data. You may accept or manage your choices by clicking below, including your right to object where legitimate interest is used, or at any time in the privacy policy page. These choices will be signaled to our partners and will not affect browsing data.

We and our partners process data to provide:

Store and/or access information on a device. Use limited data to select advertising. Create profiles for personalised advertising. Use profiles to select personalised advertising. Create profiles to personalise content. Use profiles to select personalised content. Measure advertising performance. Measure content performance. Understand audiences through statistics or combinations of data from different sources. Develop and improve services. Use limited data to select content.

How to Fix a 401 Unauthorized Error (2024)

FAQs

How to Fix a 401 Unauthorized Error? ›

401 errors are normally client-side errors, meaning they can often be fixed by clearing your browser's cookies or inputting the correct password. However, server-side issues like plugins and firewalls can also cause these errors, making it very important for site admins to be aware of potential conflicts.

How to quickly fix the 401 unauthorized error? ›

How to Fix the 401 Unauthorized Error
  1. Verify your credentials.
  2. Refresh and retry.
  3. Ensure correct URL.
  4. Clear browser cache.
  5. Audit the WWW-authenticate header response.
  6. Permission settings validation.
  7. Authentication method review.
  8. Server log analysis.
Jan 24, 2024

How do I fix 401 authorization required? ›

401 errors are normally client-side errors, meaning they can often be fixed by clearing your browser's cookies or inputting the correct password. However, server-side issues like plugins and firewalls can also cause these errors, making it very important for site admins to be aware of potential conflicts.

What is the most common cause of 401 unauthorized error on a website? ›

This error can occur with any browser when a visitor fails to provide valid authentication credentials (e.g., incorrect URLs, outdated browser cache or cookies, plugin misconfiguration, etc.). As a result, a variation of 401 error messages may appear on the screen depending on the browser the visitor is using.

What does code 401 unauthorized mean? ›

The HTTP 401 Unauthorized client error response status code indicates that a request was not successful because it lacks valid authentication credentials for the requested resource.

How do I get around a 401 error? ›

How to Fix the 401 Unauthorized Error
  1. Confirm the URL Is Correct. A wrong URL is a common culprit behind 401 HTTP status codes. ...
  2. Clear Your Browser's Cookies and Cache. ...
  3. Flush DNS Cache. ...
  4. Check Authentication Credentials. ...
  5. Disable Password Protection. ...
  6. Check the WWW-Authenticate Header. ...
  7. Disable Plugins, Modules, and Themes.
Jun 28, 2024

How to fix unauthorized access is denied due to invalid credentials? ›

Check your authentication credentials, clear your browser cache and cookies, and troubleshoot the code to resolve the issue.

How do I fix requires authorization? ›

How do you optimize your WiFi signal strength and speed to avoid WiFi authorization error?
  1. Update your router and device.
  2. Choose the best location and channel.
  3. Adjust your router's settings.
  4. Use a WiFi extender or mesh network.
  5. Restart your router and device.
  6. Troubleshoot your network and device. ...
  7. Here's what else to consider.
Mar 29, 2023

How do I fix needs authorization? ›

IT SAYS NEEDS AUTHORIZATION. This error means you don't have permission to download the file. To fix the error, contact the website or server owner, or try to find the file on a different site.

What is 401 unauthorized when communicating with? ›

Missing or Incorrect Authentication Credentials

As stated earlier, the most common cause of a 401 Unauthorized error is a client not providing valid authentication credentials, such as a username and password, in the request. This can happen if the client forgets to include the credentials or enters them incorrectly.

Why do I keep getting error 401? ›

You may see the “Error code 401” if you try to access an outdated or misspelled URL. It means that the URL is non-existent, and the server may return a server error “401 Unauthorized Access”. Maybe you saved the page address in your browser, but the page address has been changed, or it has been deleted.

Why is 401 unauthorized instead of unauthenticated? ›

The HTTP status code 401, often denoted as UNAUTHORIZED , signifies that the client lacks proper authentication credentials or has provided invalid credentials. In simpler terms, the server has failed to identify the user.

What is the difference between 401 unauthorized and forbidden? ›

The Basics of HTTP Status Codes

In the 4xx class, 401 and 403 are particularly noteworthy. The "401 Unauthorized" status code indicates that the request lacks valid authentication credentials. On the other hand, the "403 Forbidden" status code signifies that the server understands the request but refuses to fulfill it.

How to remove 401 unauthorized error? ›

To fix a “401 Unauthorized” error, try these steps:
  1. Check your login details: Make sure you're using the right username and password.
  2. Clear your browser: Delete cookies and cache.
  3. Check the web address: Make sure it's correct.
  4. Log in again: Sometimes logging out and back in can help.
May 9, 2024

What is invalid response code 401 unauthorized? ›

What is the 401 error code? The Internet Engineering Task Force (IETF) defines the error 401 Unauthorized as: The 401 (Unauthorized) status code indicates that the request has not been applied because it lacks valid authentication credentials for the target resource.

How do I fix 401 unauthorized error in SAP? ›

Resolution
  1. Invalid Login Credentials. Check if the the Password is not correct. It may be locked or expired.
  2. Invalid URL. Check for errors in the URL. ...
  3. Restricted IP. Check if the IP which is sending the data is added into the allow list.

How do I debug 401 unauthorized? ›

To debug a 401 error in an API: - Check request authorization credentials. - Review API docs for requirements. - Verify token or credentials validity. - Inspect request details (headers, params).

What is 401 unauthorized cause? ›

You may see the “Error code 401” if you try to access an outdated or misspelled URL. It means that the URL is non-existent, and the server may return a server error “401 Unauthorized Access”. Maybe you saved the page address in your browser, but the page address has been changed, or it has been deleted.

How to fix 401 unauthorized error rest API in postman? ›

Make sure that the URL is typed correctly. Verify the API documentation of the service you are trying to reach and make sure you have selected the right authorization type in Postman. Visit the service provider's page and look for a Sign in link. Enter your credentials and then try the page again.

Top Articles
Latest Posts
Article information

Author: Jamar Nader

Last Updated:

Views: 5255

Rating: 4.4 / 5 (55 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Jamar Nader

Birthday: 1995-02-28

Address: Apt. 536 6162 Reichel Greens, Port Zackaryside, CT 22682-9804

Phone: +9958384818317

Job: IT Representative

Hobby: Scrapbooking, Hiking, Hunting, Kite flying, Blacksmithing, Video gaming, Foraging

Introduction: My name is Jamar Nader, I am a fine, shiny, colorful, bright, nice, perfect, curious person who loves writing and wants to share my knowledge and understanding with you.