{"id":1339,"date":"2014-10-09T13:42:15","date_gmt":"2014-10-09T17:42:15","guid":{"rendered":"http:\/\/www.gtcomm.net\/blog\/?p=1339"},"modified":"2017-11-24T18:08:59","modified_gmt":"2017-11-24T23:08:59","slug":"5-most-common-http-error-codes-explained","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/","title":{"rendered":"5 Most Common HTTP Error Codes Explained"},"content":{"rendered":"<h1>5 Most Common HTTP Error Codes Explained<\/h1>\n<p>When you surf the web, it works on a request-response system. You request a resource, such as \u00a0web page or an image, and you get back a response, or your browser does, at least. Thanks to the &#8220;http:&#8221; you place before a URL when you type in the browser\u2019s address bar, requests and responses have a predefined structure. <!--more-->As defined by the Hypertext Transfer Protocol (HTTP), an important part of that structure is a status code.<\/p>\n<h2>Introducing HTTP Status Codes<\/h2>\n<p>Status codes are three-digit numbers. A 200 code is the most common and represents a successful response. The first digit defines what is known as the class of the status code. If the code starts with a 2, as in 200, that represents a successful response to the request. There are status codes that start with 1. These represent informational messages. These are rarely seen. A code of the form 3xx represents a redirection response. Typically, the browser will handle these without user interaction and get the resource from the new location instead.<\/p>\n<p>Error codes come in the form of 4xx and 5xx statuses. Error codes at the 400 level mean there was a client-side error \u2014\u00a0think of something like the user typing the wrong URL in the address bar. Error codes at the 500 level mean there was a server-side error \u2014\u00a0think of something like the database server going down or perhaps running out of disk space.<\/p>\n<p>Five of the most popular error codes are 403, 404, 500, 503, and 504. Let\u2019s look at each of these in a little more detail.<\/p>\n<h2>404 Not Found<\/h2>\n<p>The most common error code you run into is a 404 error. The 404 status code <strong>means the requested resource is no longer available<\/strong> or, more specifically, just not found. Was it ever available there? You don\u2019t know. You do know it isn\u2019t available there now.<\/p>\n<p>What are some of the reasons for a 404 error? Typos are a common reason for getting a 404 error. A missing or extra letter in a typed-in url, or a wrong domain name can often result in a 404 error. Another reason for 404 errors isn\u2019t typos; it is the aging of the web. When someone writes an article or blog, that person might link to a secondary source to provide additional information for the article. Now imagine revisiting said article six months or six years later. If what was linked to is no longer on the web, a 404 error will be generated when you click on the link in the browser.<\/p>\n<h2>403 Forbidden<\/h2>\n<p>Another common client-side response status code is 403. Getting a 403 status code back from an HTTP request <strong>means access to the resource is forbidden<\/strong>. This is not an authentication problem; those are 401 (unauthorized) errors. One common reason for 403 errors is the server maintaining a whitelist of machines that can access that system and the user\u2019s machine not being on it. If the client\u2019s certificate is no longer valid (or is just plain missing), that\u2019s another reason for a 403 error response. There typically is no recovery from these, short of trying from a different machine. Finally, there\u2019s also the possibility of wrong permissions associated to files. Often in Linux and sometimes in Windows, a webserver will not have access to website files because of faulty permissions. This will also result in a 403 error. The server owner will need to change the file permissions to fix this.<\/p>\n<h2>500 Internal Server Error<\/h2>\n<p>Moving over to the <strong>server-side error codes<\/strong>, the 500 error is the catchall. When none of the other 500 error codes make sense, or if the programmer is just lazy and doesn\u2019t identify the specific problem, a 500 status code is returned. Typically, you can retry the request attempt again and possibly get a different response. Of course, retrying attempts that involved a shopping cart that resulted in a 500 error could result in a duplicate order, so tread carefully there.<\/p>\n<h2>503 Service Unavailable<\/h2>\n<p>Like many of the 500-level error codes, the 503 (service unavailable) status code could be a temporary problem. It basically means <strong>the web server isn\u2019t available<\/strong>. Why? You don\u2019t know. Perhaps the web server just restarted and is in the middle of initialization. Perhaps it is overloaded and can\u2019t handle any more concurrent requests. Or perhaps it is just down for maintenance. Retrying the request could work or could return another 5xx error.<\/p>\n<h2>504 Gateway Timeout<\/h2>\n<p>The final of the top five error codes is the 504 status, <strong>indicating a gateway timeout<\/strong>. The name says it all. A proxy server needs to communicate with a secondary web server, such as an apache server, and access to that server timed out. There could be a DNS issue, a network device might be down, or the other machine could just be overly busy and unable to process the request in a timely fashion. This can only happen in a setup where a caching or proxy server is directly serving the webpage and the actual webserver behind it is unreachable. As with the other 5xx-level errors, just retrying the request could result in a successful response.<\/p>\n<h2>In the End<\/h2>\n<p>HTTP and its associated secure HTTPS are the primary protocols for browsing on the web. Each web request results in a response with an associated status code. Status codes fall into classes: informational (1xx), success (2xx), redirection (3xx), client errors (4xx), server errors (5xx). You try to get success responses with your requests, but it doesn\u2019t always happen. Learn how to recover from these error codes, so you can move on.<\/p>\n<p>&nbsp;<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>5 Most Common HTTP Error Codes Explained When you surf the web, it works on a request-response system. You request a resource, such as \u00a0web page or an image, and you get back a response, or your browser does, at least. Thanks to the &#8220;http:&#8221; you place before a URL when you type in the<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":4,"featured_media":1348,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10,8],"class_list":["post-1339","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dedicated-server","tag-web-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>5 Most Common HTTP Error Codes Explained - Globo.Tech<\/title>\n<meta name=\"description\" content=\"There are multiple HTTP error codes that you may come across. Have you already seen a 404, 403, 500, 503 codes and you don&#039;t know what to do ? Come and see.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"5 Most Common HTTP Error Codes Explained - Globo.Tech\" \/>\n<meta property=\"og:description\" content=\"There are multiple HTTP error codes that you may come across. Have you already seen a 404, 403, 500, 503 codes and you don&#039;t know what to do ? Come and see.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2014-10-09T17:42:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-11-24T23:08:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2014\/10\/five_most_common_http_error_codes_explained-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"340\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Eric Simard\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Eric Simard\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/\",\"name\":\"5 Most Common HTTP Error Codes Explained - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2014\/10\/five_most_common_http_error_codes_explained-1.jpg\",\"datePublished\":\"2014-10-09T17:42:15+00:00\",\"dateModified\":\"2017-11-24T23:08:59+00:00\",\"author\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/2202ee355cd2897b4751d2f3ffcd56f1\"},\"description\":\"There are multiple HTTP error codes that you may come across. Have you already seen a 404, 403, 500, 503 codes and you don't know what to do ? Come and see.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/#primaryimage\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2014\/10\/five_most_common_http_error_codes_explained-1.jpg\",\"contentUrl\":\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2014\/10\/five_most_common_http_error_codes_explained-1.jpg\",\"width\":500,\"height\":340},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.globo.tech\/learning-center\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"5 Most Common HTTP Error Codes Explained\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/\",\"name\":\"Globo.Tech\",\"description\":\"Welcome to the Official Globo.Tech Learning Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/2202ee355cd2897b4751d2f3ffcd56f1\",\"name\":\"Eric Simard\",\"description\":\"I am Eric Simard, best father in the world and account manager at GloboTech Communications located in the beautiful city of Montreal. Passionate about the hosting world and technologies, I take great pleasure in offering the best solutions for my clients. Follow me through my journey in the exciting hosting world on my different blogs!\",\"sameAs\":[\"http:\/\/www.gtcomm.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"5 Most Common HTTP Error Codes Explained - Globo.Tech","description":"There are multiple HTTP error codes that you may come across. Have you already seen a 404, 403, 500, 503 codes and you don't know what to do ? Come and see.","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.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/","og_locale":"en_US","og_type":"article","og_title":"5 Most Common HTTP Error Codes Explained - Globo.Tech","og_description":"There are multiple HTTP error codes that you may come across. Have you already seen a 404, 403, 500, 503 codes and you don't know what to do ? Come and see.","og_url":"https:\/\/www.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/","og_site_name":"Globo.Tech","article_published_time":"2014-10-09T17:42:15+00:00","article_modified_time":"2017-11-24T23:08:59+00:00","og_image":[{"width":500,"height":340,"url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2014\/10\/five_most_common_http_error_codes_explained-1.jpg","type":"image\/jpeg"}],"author":"Eric Simard","twitter_misc":{"Written by":"Eric Simard","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/","url":"https:\/\/www.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/","name":"5 Most Common HTTP Error Codes Explained - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/#primaryimage"},"image":{"@id":"https:\/\/www.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/#primaryimage"},"thumbnailUrl":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2014\/10\/five_most_common_http_error_codes_explained-1.jpg","datePublished":"2014-10-09T17:42:15+00:00","dateModified":"2017-11-24T23:08:59+00:00","author":{"@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/2202ee355cd2897b4751d2f3ffcd56f1"},"description":"There are multiple HTTP error codes that you may come across. Have you already seen a 404, 403, 500, 503 codes and you don't know what to do ? Come and see.","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/#primaryimage","url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2014\/10\/five_most_common_http_error_codes_explained-1.jpg","contentUrl":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2014\/10\/five_most_common_http_error_codes_explained-1.jpg","width":500,"height":340},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/5-most-common-http-error-codes-explained\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globo.tech\/learning-center\/"},{"@type":"ListItem","position":2,"name":"5 Most Common HTTP Error Codes Explained"}]},{"@type":"WebSite","@id":"https:\/\/www.globo.tech\/learning-center\/#website","url":"https:\/\/www.globo.tech\/learning-center\/","name":"Globo.Tech","description":"Welcome to the Official Globo.Tech Learning Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/2202ee355cd2897b4751d2f3ffcd56f1","name":"Eric Simard","description":"I am Eric Simard, best father in the world and account manager at GloboTech Communications located in the beautiful city of Montreal. Passionate about the hosting world and technologies, I take great pleasure in offering the best solutions for my clients. Follow me through my journey in the exciting hosting world on my different blogs!","sameAs":["http:\/\/www.gtcomm.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/1339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/comments?post=1339"}],"version-history":[{"count":13,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/1339\/revisions"}],"predecessor-version":[{"id":3905,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/1339\/revisions\/3905"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media\/1348"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=1339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=1339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=1339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}