Troubleshooting Center
Menu
← All guides

Machine translation · Korean original

Troubleshoot HTTP 401 Unauthorized by checking the official sign-in page and the WWW-Authenticate header

Data room document displays 401 sign requesting login
Data room screen example

in your browser 401 Unauthorized When appears, check in the address bar that it is the official site you are trying to access, and then open the login screen for that service. After logging in, return to the document you originally tried to view. If you receive a 401 from the API, read the WWW-Authenticate header in the response first. 401 means there is no valid authentication information to open the requested resource.

Check sites and materials that require login

Leave the tab with the error on your phone or computer and see what address and what was opened. For example, if it was a ‘this month’s schedule’ link in the team data room, check the data room domain and document name. Even if you see the same company logo, if you are not sure if it is the official address you normally use, try opening the data room from existing bookmarks or the official app. There is no need to test a 401 by entering your password on an unknown page.

Screen showing 401 Unauthorized and login action in team data room schedule document
Login screen example · Check the official data room address and the document you are trying to open.

Opening the homepage and being able to view a specific document are two different results. Although the notice list can be read by anyone, attached documents can only be provided to those who are logged in. Before deciding that ‘the entire site does not open,’ write down where the 401 was displayed: on the home screen, in the list of materials, or in the actual document. You can check the results by reopening the same target in the next step.

If you only see ‘Please log in again’ without any numbers on the screen, you cannot confirm HTTP 401 with that phrase alone. If only site-specific instructions are displayed on the user's screen, log in according to the instructions and forward the actual message when you need to inquire about support. Conversely, even if the number 401 is clear, do not immediately assume that the password is incorrect. This also includes situations where authentication information is not included in the request or the current information is no longer valid.

Re-open the same data after official login

Select the service's official login action and log into the account you usually use to access that material. If you use both personal and work accounts, check the account name or affiliation. Even if you log in from the app, the external browser that opens the link may remain logged in. Please check your account in the browser or app where the material is actually opened.

If you complete logging in and go to Home, you will return to the document link you first opened. Check for content related to its original purpose, such as the document title and first paragraph, and the name of the file you were trying to download. Displaying your profile picture is a clue that you passed the login screen, but it does not guarantee that the document was opened.

It appears that you have already logged in, but if 401 is repeated in the same document, check whether the currently selected account is correct and whether a new login request has been made. Rather than refreshing the screen multiple times while remaining in the previous tab, navigating to the same resource on the official home page allows you to distinguish between outdated links and the paths currently provided by the service. Changing your password or logging out of all devices isn't the first thing you should do just because you see a 401.

Reading WWW-Authenticate from API response

Open the failed request log in your integration or development tool and see if the status is 401. If you're looking at your browser's network history, select one of the multiple requests on the page that matches the problematic document or API path and method. In Headers, find WWW-Authenticate by Response Headers. This is response information that tells the server what type of authentication it expects.

In the network history, the WWW-Authenticate value of the 401 response is Bearer.
Response header example · Bearer is the authentication method required by the server.

In the MDN example, a request for a protected address returns 401 and the WWW-Authenticate value says Bearer. Here Bearer is the name of the method. This word itself is not a token value that can complete authentication. In actual integration, check the authentication method and normal issuance path required for the resource in the relevant service document, and follow the official authentication procedure of the client you are using.

Separating the authentication information used in the request and the instructions returned by the server reduces confusion. WWW-Authenticate appears in the response, and clients using the authentication method provide information appropriate for that method in the next request. There is no need for site visitors to type this header into the address bar or enter their personal token into the password field of a regular login window. In your browser, use the login flow provided by the service.

Distinguish between 401, 403, and 407

confirmed response What to look at first Next check
401 Unauthorized Require authentication from the requesting server Official login for that service
403 Forbidden Access to such material or work Account roles and sharing scope
407 Proxy Authentication Required Require authentication from intermediate proxy Organization-specified proxy authentication

In the same data, if it was 401 before logging in but changed to 403 after logging in, decide the next action based on the last status. For example, you may be logged in to your team, but the settlement screen, which is only visible to admins, still won't open. In this case, it is more accurate to check with the document owner whether my account is subject to viewing rather than continuously changing the password.

If the Proxy Authentication window appears before you open a site on your corporate network, read the title and number again. At 407, Proxy-Authenticate informs the request of an intermediate proxy, and at 401, WWW-Authenticate informs the authentication method of the requested resource. Even if the window shape is similar, the authentication targets are different, so do not mix accounts from the company network and accounts from external sites.

Organizing processing results and inquiry information after retry

If it is a simple inquiry, after completing authentication, open the original document again and check the contents. If you see a 401 after an action that leaves a result, such as an application or payment, the process is a little different. After logging in, first check your receipt history or order number. It is impossible to tell by a single error number whether the entire submission process failed or authentication was only required at the stage of reading the result screen.

If you continue to be blocked, organize the time and time of occurrence, the route available for public use, whether it is a web or app, and the status before and after logging in. ‘I logged in with my work account in the official archives and Home opens. If you select a certain document, the person in charge can check the authentication status and destination path by saying ‘401.’ When sharing request history, leave only the status code and authentication method name instead of password, token, or cookie values.

official data · MDN · 401 Unauthorized

official help

Check official documentation ·

Inspection information

public status
public
Document inspection date
Scheduled for next review
direct reproduction
no record

This article was written based on official documents. We don't represent things as if we experienced them unless we reproduced them ourselves.