{"id":17096,"date":"2020-02-05T14:24:49","date_gmt":"2020-02-05T20:24:49","guid":{"rendered":"https:\/\/www.dotcom-tools.com\/blog\/?p=17096"},"modified":"2021-11-17T01:04:18","modified_gmt":"2021-11-17T07:04:18","slug":"what-is-a-401-error","status":"publish","type":"post","link":"https:\/\/www.dotcom-tools.com\/web-performance\/what-is-a-401-error\/","title":{"rendered":"What is a 401 Error?"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"size-full wp-image-17149 aligncenter\" src=\"https:\/\/www.dotcom-tools.com\/web-performance\/wp-content\/uploads\/2020\/06\/what is a 401 errror.jpg\" alt=\"what is a 401 error\" width=\"900\" height=\"400\" srcset=\"https:\/\/www.dotcom-tools.com\/web-performance\/wp-content\/uploads\/2020\/06\/what%20is%20a%20401%20errror.jpg 900w, https:\/\/www.dotcom-tools.com\/web-performance\/wp-content\/uploads\/2020\/06\/what%20is%20a%20401%20errror-350x156.jpg 350w, https:\/\/www.dotcom-tools.com\/web-performance\/wp-content\/uploads\/2020\/06\/what%20is%20a%20401%20errror-768x341.jpg 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>When the web was first constructed, it became clear the servers that sent web pages, images and other digital assets to browsers would need some kind of standardized system of error notification. Since there were several errors that always reported the same basic fault, it was decided this would be a good way to diagnose network problems without specialized tools or elaborate communications protocols. The HyperText Transfer Protocol (the HTTP in your browser address bar) is, after all, a rather simple system designed to do very basic things and not much else.<\/p>\n<p>If a web server encounters a situation where it can&#8217;t perform its normal functions, it is programmed to do two things. First, the server logs an error condition in the standard web server logs. Second, it returns the error&#8217;s standardized code to the browser to indicate something has gone wrong. Under normal conditions, a server will return code &#8220;200,&#8221; which means whatever the browser requested was successfully delivered from the server across the network.<\/p>\n<p>However, if something goes wrong, then the server sends a code other than 200. One of those codes is 401 error, which indicates a <a href=\"https:\/\/www.w3.org\/Protocols\/rfc2616\/rfc2616-sec10.html\">failure to access<\/a> a secured resource on the web server.<\/p>\n<h2>Password Web<\/h2>\n<p>One of the key features of the early web was a &#8220;quick and dirty&#8221; method of securing certain files and directories on the web server with a simple password. A web server can be configured to consider a directory or a file &#8220;restricted,&#8221; and requiring a username and\/or password to access. If a restricted URL is requested by a browser, the server is set to examine the credentials sent with the request. If the proper credentials are supplied, the server sends the requested files normally. If no credentials are sent, then the server returns a &#8220;401 Unauthorized&#8221; error, indicating the restricted files are not accessible without proper credentials.<\/p>\n<h3>401 Error: Unauthorized Repair<\/h3>\n<p>In most cases, 401 errors are the result of a mistyped URL. Because servers can be configured to set some files as restricted, they can also set up blacklists restricting entire sites and only making certain files accessible without credentials. In this situation, it is easy for the server to produce &#8220;401 Unauthorized&#8221; errors even if the requested URL doesn&#8217;t exist.<\/p>\n<p>Another common problem is a cookie set by the server with an out-of-date password. In such situations, the client is never asked for the updated password, because the cookie is provided as authentication first. If the cookie&#8217;s password is out of date, then the site will continually return &#8220;401 Unauthorized&#8221; errors even if the URL is properly entered. Clearing cookies should also be followed by clearing the cache, as old files can sometimes cause the same error.<\/p>\n<p>A less common but quite possible cause of a 401 error is an expired login. To the client, it may appear the user is logged in while on the server permission to access the site has timed out. To repair this situation, the user should log out and then log back in to the site. This can reset the timeouts and reauthorize the browser to access the necessary URLs.<\/p>\n<p>&nbsp;<\/p>\n<p>For other Troubleshooting Information, see our:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.dotcom-tools.com\/web-performance\/blog\/501-not-implemented-http-error-code-solve-it-now\/\">501 Error &#8211; Not Implemented HTTP<\/a><\/li>\n<li><a href=\"https:\/\/www.dotcom-tools.com\/web-performance\/blog\/502-bad-gateway-wordpress-fix-it-fast\/\">502 Error &#8211; Bad Gateway<\/a><\/li>\n<li><a href=\"https:\/\/www.dotcom-tools.com\/web-performance\/blog\/504-errors-fix-it-fast\/\">504 Error &#8211; HTTP Bad Gateway<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>When the web was first constructed, it became clear the servers that sent web pages, images and other digital assets to browsers would need some kind of standardized system of error notification. Since there were several errors that always reported the same basic fault, it was decided this would be a good way to diagnose&hellip;<\/p>\n","protected":false},"author":5,"featured_media":17149,"comment_status":"open","ping_status":"open","sticky":false,"template":"template-url.php","format":"standard","meta":[],"categories":[40],"tags":[69,81,82,71],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.6 (Yoast SEO v19.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>What is a 401 Error? | Dotcom-Tools Performance Blog<\/title>\r\n<meta name=\"description\" content=\"A 401 error is the result of a mistyped URL. The server can easily produce &quot;401 Unauthorized&quot; errors even if a requested URL doesn&#039;t exitst.\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/www.dotcom-tools.com\/web-performance\/what-is-a-401-error\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"What is a 401 Error?\" \/>\r\n<meta property=\"og:description\" content=\"A 401 error is the result of a mistyped URL. The server can easily produce &quot;401 Unauthorized&quot; errors even if a requested URL doesn&#039;t exitst.\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/www.dotcom-tools.com\/web-performance\/what-is-a-401-error\/\" \/>\r\n<meta property=\"og:site_name\" content=\"Dotcom-Monitor Tools Blog\" \/>\r\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dotcommonitor\" \/>\r\n<meta property=\"article:published_time\" content=\"2020-02-05T20:24:49+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2021-11-17T07:04:18+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/www.dotcom-tools.com\/web-performance\/wp-content\/uploads\/2020\/06\/what%20is%20a%20401%20errror.jpg\" \/>\r\n\t<meta property=\"og:image:width\" content=\"900\" \/>\r\n\t<meta property=\"og:image:height\" content=\"400\" \/>\r\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\r\n<meta name=\"twitter:card\" content=\"summary\" \/>\r\n<meta name=\"twitter:creator\" content=\"@dotcom_monitor\" \/>\r\n<meta name=\"twitter:site\" content=\"@dotcom_monitor\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Glenn Lee\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/#website\",\"url\":\"https:\/\/www.dotcom-tools.com\/web-performance\/\",\"name\":\"Dotcom-Monitor Tools Blog\",\"description\":\"Let&#039;s Make the Web a Faster Place.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dotcom-tools.com\/web-performance\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/what-is-a-401-error\/#primaryimage\",\"url\":\"https:\/\/www.dotcom-tools.com\/web-performance\/wp-content\/uploads\/2020\/06\/what is a 401 errror.jpg\",\"contentUrl\":\"https:\/\/www.dotcom-tools.com\/web-performance\/wp-content\/uploads\/2020\/06\/what is a 401 errror.jpg\",\"width\":900,\"height\":400,\"caption\":\"what is a 401 error\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/what-is-a-401-error\/#webpage\",\"url\":\"https:\/\/www.dotcom-tools.com\/web-performance\/what-is-a-401-error\/\",\"name\":\"What is a 401 Error? | Dotcom-Tools Performance Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/what-is-a-401-error\/#primaryimage\"},\"datePublished\":\"2020-02-05T20:24:49+00:00\",\"dateModified\":\"2021-11-17T07:04:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/#\/schema\/person\/a18124e28e1b2c8e71f8ddf7d3e38ed4\"},\"description\":\"A 401 error is the result of a mistyped URL. The server can easily produce \\\"401 Unauthorized\\\" errors even if a requested URL doesn't exitst.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/what-is-a-401-error\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dotcom-tools.com\/web-performance\/what-is-a-401-error\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/what-is-a-401-error\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.dotcom-tools.com\/web-performance\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is a 401 Error?\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/#\/schema\/person\/a18124e28e1b2c8e71f8ddf7d3e38ed4\",\"name\":\"Glenn Lee\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dotcom-tools.com\/web-performance\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7a52a01e153d000504984c4f0853f002?s=96&d=retro&r=pg\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7a52a01e153d000504984c4f0853f002?s=96&d=retro&r=pg\",\"caption\":\"Glenn Lee\"},\"description\":\"Glenn Lee is the chief product engineer for Dotcom-Monitor\u2019s LoadView load testing platform. Glenn is an industry expert on load\/stress testing and has appeared on numerous tech publications across the web. When Glenn\u2019s not testing the limits of websites, he enjoys cooking, flying airplanes, and racing motorcycles.\",\"url\":\"https:\/\/www.dotcom-tools.com\/web-performance\/author\/glenn-lee\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"What is a 401 Error? | Dotcom-Tools Performance Blog","description":"A 401 error is the result of a mistyped URL. The server can easily produce \"401 Unauthorized\" errors even if a requested URL doesn't exitst.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dotcom-tools.com\/web-performance\/what-is-a-401-error\/","og_locale":"en_US","og_type":"article","og_title":"What is a 401 Error?","og_description":"A 401 error is the result of a mistyped URL. The server can easily produce \"401 Unauthorized\" errors even if a requested URL doesn't exitst.","og_url":"https:\/\/www.dotcom-tools.com\/web-performance\/what-is-a-401-error\/","og_site_name":"Dotcom-Monitor Tools Blog","article_publisher":"https:\/\/www.facebook.com\/dotcommonitor","article_published_time":"2020-02-05T20:24:49+00:00","article_modified_time":"2021-11-17T07:04:18+00:00","og_image":[{"width":900,"height":400,"url":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-content\/uploads\/2020\/06\/what is a 401 errror.jpg","type":"image\/jpeg"}],"twitter_card":"summary","twitter_creator":"@dotcom_monitor","twitter_site":"@dotcom_monitor","twitter_misc":{"Written by":"Glenn Lee","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.dotcom-tools.com\/web-performance\/#website","url":"https:\/\/www.dotcom-tools.com\/web-performance\/","name":"Dotcom-Monitor Tools Blog","description":"Let&#039;s Make the Web a Faster Place.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dotcom-tools.com\/web-performance\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dotcom-tools.com\/web-performance\/what-is-a-401-error\/#primaryimage","url":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-content\/uploads\/2020\/06\/what is a 401 errror.jpg","contentUrl":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-content\/uploads\/2020\/06\/what is a 401 errror.jpg","width":900,"height":400,"caption":"what is a 401 error"},{"@type":"WebPage","@id":"https:\/\/www.dotcom-tools.com\/web-performance\/what-is-a-401-error\/#webpage","url":"https:\/\/www.dotcom-tools.com\/web-performance\/what-is-a-401-error\/","name":"What is a 401 Error? | Dotcom-Tools Performance Blog","isPartOf":{"@id":"https:\/\/www.dotcom-tools.com\/web-performance\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dotcom-tools.com\/web-performance\/what-is-a-401-error\/#primaryimage"},"datePublished":"2020-02-05T20:24:49+00:00","dateModified":"2021-11-17T07:04:18+00:00","author":{"@id":"https:\/\/www.dotcom-tools.com\/web-performance\/#\/schema\/person\/a18124e28e1b2c8e71f8ddf7d3e38ed4"},"description":"A 401 error is the result of a mistyped URL. The server can easily produce \"401 Unauthorized\" errors even if a requested URL doesn't exitst.","breadcrumb":{"@id":"https:\/\/www.dotcom-tools.com\/web-performance\/what-is-a-401-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dotcom-tools.com\/web-performance\/what-is-a-401-error\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dotcom-tools.com\/web-performance\/what-is-a-401-error\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dotcom-tools.com\/web-performance\/"},{"@type":"ListItem","position":2,"name":"What is a 401 Error?"}]},{"@type":"Person","@id":"https:\/\/www.dotcom-tools.com\/web-performance\/#\/schema\/person\/a18124e28e1b2c8e71f8ddf7d3e38ed4","name":"Glenn Lee","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dotcom-tools.com\/web-performance\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7a52a01e153d000504984c4f0853f002?s=96&d=retro&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7a52a01e153d000504984c4f0853f002?s=96&d=retro&r=pg","caption":"Glenn Lee"},"description":"Glenn Lee is the chief product engineer for Dotcom-Monitor\u2019s LoadView load testing platform. Glenn is an industry expert on load\/stress testing and has appeared on numerous tech publications across the web. When Glenn\u2019s not testing the limits of websites, he enjoys cooking, flying airplanes, and racing motorcycles.","url":"https:\/\/www.dotcom-tools.com\/web-performance\/author\/glenn-lee\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/posts\/17096"}],"collection":[{"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/comments?post=17096"}],"version-history":[{"count":5,"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/posts\/17096\/revisions"}],"predecessor-version":[{"id":17687,"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/posts\/17096\/revisions\/17687"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/media\/17149"}],"wp:attachment":[{"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/media?parent=17096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/categories?post=17096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dotcom-tools.com\/web-performance\/wp-json\/wp\/v2\/tags?post=17096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}