{"id":105,"date":"2024-01-04T23:13:58","date_gmt":"2024-01-04T23:13:58","guid":{"rendered":"https:\/\/www.vpsjungle.in\/tutorials\/?p=105"},"modified":"2024-01-05T00:39:15","modified_gmt":"2024-01-05T00:39:15","slug":"the-ultimate-guide-to-http-status-codes","status":"publish","type":"post","link":"https:\/\/www.vpsjungle.in\/tutorials\/the-ultimate-guide-to-http-status-codes\/","title":{"rendered":"The Ultimate Guide to HTTP Status Codes &amp; What They Mean"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"496\" height=\"201\" src=\"https:\/\/www.vpsjungle.in\/tutorials\/wp-content\/uploads\/2024\/01\/httpstatus.png\" alt=\"HTTP Status\" class=\"wp-image-109\" style=\"width:651px;height:auto\" srcset=\"https:\/\/www.vpsjungle.in\/tutorials\/wp-content\/uploads\/2024\/01\/httpstatus.png 496w, https:\/\/www.vpsjungle.in\/tutorials\/wp-content\/uploads\/2024\/01\/httpstatus-300x122.png 300w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#what-is-an-http-status-code\">What is an HTTP status code?<\/a><\/li><li><a href=\"#common-http-status-code-classes\">Common HTTP status code classes:<\/a><\/li><li><a href=\"#the-most-important-http-status-codes\">The most important HTTP status codes<\/a><ul><li><a href=\"#1-xx-informational\">1xx (Informational):<\/a><\/li><li><a href=\"#2-xx-successful\">2xx (Successful):<\/a><\/li><li><a href=\"#3-xx-redirection\">3xx (Redirection):<\/a><\/li><li><a href=\"#4-xx-client-error\">4xx (Client Error):<\/a><\/li><li><a href=\"#5-xx-server-error\">5xx (Server Error):<\/a><\/li><\/ul><\/li><li><a href=\"#1-xx-http-status-codes\">1XX HTTP Status Codes<\/a><\/li><li><a href=\"#2-xx-http-status-codes\">2XX HTTP Status Codes<\/a><\/li><li><a href=\"#3-xx-http-status-codes\">3XX HTTP Status Codes<\/a><\/li><li><a href=\"#4-xx-http-status-codes\">4XX HTTP Status Codes<\/a><\/li><li><a href=\"#5-xx-http-status-codes\">5XX HTTP Status Codes<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-an-http-status-code\">What is an HTTP status code?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">An HTTP status code is a server response to a browser\u2019s request. When you visit a website, your browser sends a request to the site\u2019s server, and the server then responds to the browser\u2019s request with a three-digit code: the HTTP status code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These status codes are the Internet equivalent of a conversation between your browser and the server. They communicate whether things between the two are A-okay, touch-and-go, or whether something is wrong. Understanding status codes and how to use them will help you to diagnose site errors quickly to minimize downtime on your <a href=\"https:\/\/www.vpsjungle.in\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/www.vpsjungle.in\/\" rel=\"noreferrer noopener nofollow\">site<\/a>. You can even use some of these status codes to help search engines and people access your site; a 301 redirect, for example, will tell bots and people that a page that has moved somewhere else permanently.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The first digit of each three-digit status code begins with one of five numbers, 1 through 5; you may see this expressed as 1xx or 5xx to indicate status codes in that range. Each of those ranges encompasses a different class of server response.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"common-http-status-code-classes\">Common HTTP status code classes:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1xxs<\/strong> \u2013 Informational responses: The server is thinking through the request.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2xxs<\/strong> \u2013 Success! The request was successfully completed and the server gave the browser the expected response.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3xxs<\/strong> \u2013 Redirection: You got redirected somewhere else. The request was received, but there\u2019s a redirect of some kind.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>4xxs<\/strong> \u2013 Client errors: Page not found. The site or page couldn\u2019t be reached. (The request was made, but the page isn\u2019t valid \u2014 this is an error on the website\u2019s side of the conversation and often appears when a page doesn\u2019t exist on the site.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>5xxs<\/strong> \u2013 Server errors: Failure. A valid request was made by the client but the server failed to complete the request.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"the-most-important-http-status-codes\">The most important HTTP status codes<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"627\" height=\"712\" src=\"https:\/\/www.vpsjungle.in\/tutorials\/wp-content\/uploads\/2024\/01\/code.jpeg\" alt=\"\" class=\"wp-image-117\" style=\"width:481px;height:auto\" srcset=\"https:\/\/www.vpsjungle.in\/tutorials\/wp-content\/uploads\/2024\/01\/code.jpeg 627w, https:\/\/www.vpsjungle.in\/tutorials\/wp-content\/uploads\/2024\/01\/code-264x300.jpeg 264w\" sizes=\"auto, (max-width: 627px) 100vw, 627px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-xx-informational\">1xx (Informational):<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">100 Continue<br>101 Switching Protocols<br>102 Processing<br>103 Early Hints<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-xx-successful\">2xx (Successful):<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">200 OK<br>201 Created<br>202 Accepted<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3-xx-redirection\">3xx (Redirection):<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">300 Multiple Choices<br>301 Moved Permanently<br>302 Found<br>303 See Other<br>304 Not Modified<br>305 Use Proxy<br>307 Temporary Redirect<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"4-xx-client-error\">4xx (Client Error):<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">400 Bad Request<br>401 Unauthorized<br>402 Payment Required<br>403 Forbidden<br>404 Not Found<br>406 Not Acceptable<br>410 Gone<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"5-xx-server-error\">5xx (Server Error):<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">500 Internal Server Error<br>502 Bad Gateway<br>503 Service Unavailable<br>504 Gateway Timeout<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"1-xx-http-status-codes\">1XX HTTP Status Codes<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This category is informational, temporary, and invisible to the client. It indicates the server received the request and will proceed with it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>100<\/strong> \u2014 Continue: This interim status code means the server received the initial request, and the client should continue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>101<\/strong> \u2014 Switching protocols: This code is a response to an Upgrade header field request and states the protocol the server will switch to.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>102<\/strong> \u2014 Processing: This response indicates the server received and is processing the request, but no response is yet available.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>103<\/strong> \u2014 Early hints: This code is used with the Link header and allows the browser to preload resources while the server prepares a response.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"2-xx-http-status-codes\">2XX HTTP Status Codes<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This status code category encompasses successful responses.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>200 <\/strong>\u2014 OK: This is the standard response for successful HTTP requests. The actual meaning of the response depends on the request method used:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GET: Resource obtained and is in the message body<br>HEAD: Headers are included in the response<br>POST or PUT: Resource describing the result of the action sent is in the message body<br>TRACE: Message body contains the request message as received by the server<br><br><strong>201 <\/strong>\u2014 Created: The request succeeded and a new resource was created. This is usually the response after POST or PUT requests.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>202 <\/strong>\u2014 Accepted: The request was accepted but is still in progress. It\u2019s used for cases where another server handles the request or for batch processing.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"3-xx-http-status-codes\">3XX HTTP Status Codes<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The status codes in this category show the resource is in a different location, and the user gets redirected as a result.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>300 <\/strong>\u2014 Multiple Choice: The request has more than one possible response. And the user should choose one of them.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>301 <\/strong>\u2014 Moved Permanently: This redirect status code indicates the requested resource has permanently moved to a new URL. The browser displays the new URL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>302 <\/strong>\u2014 Found: Previously known as \u201cMoved Temporarily,\u201d this code indicates the requested resource has temporarily moved to a new URL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>303 <\/strong>\u2014 See Other: The server redirects the user to the requested resource with a GET request at another URL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>304 <\/strong>\u2014 Not Modified: Used for caching purposes. The response hasn\u2019t been modified, so the client can continue to use the same cached version of the requested resource.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>307 <\/strong>\u2014 Temporary Redirect: The requested resource temporarily moved to a different URL. The only difference vis-a-vis the 302 code is the user must not change the HTTP method used.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"4-xx-http-status-codes\">4XX HTTP Status Codes<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This category indicates the server can\u2019t reach a page due to an error on the client side.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>400 <\/strong>\u2014 Bad Request: The server can\u2019t or won\u2019t process the request due to a client error. For example, invalid request message framing, deceptive request routing, size too large, etc.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>401 <\/strong>\u2014 Unauthorized: The user doesn\u2019t have valid authentication credentials to get the requested resource.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>402 <\/strong>\u2014 Payment Required: Reserved for future use; it was initially intended for digital payment systems. It\u2019s very rarely used, and no standard convention regulates it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>403 <\/strong>\u2014 Forbidden: The client doesn\u2019t have access rights to the content. For example, it may require a password. Unlike the 401 HTTP error code, the server does know the client\u2019s identity.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>404 <\/strong>\u2014 Not Found: The server can\u2019t find the requested resource, and no redirection has been set. 404 errors can harm your SEO efforts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>406 <\/strong>\u2014 Not Acceptable: The server doesn\u2019t find any content that satisfies the criteria given by the user according to the Accept headers requested.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>410 <\/strong>\u2014 Gone: The content requested has been permanently deleted from the server and will not be reinstated.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"5-xx-http-status-codes\">5XX HTTP Status Codes<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This category includes errors on the server side.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>500 <\/strong>\u2014 Internal Server Error: The server has encountered an unexpected error and cannot complete the request.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>502 <\/strong>\u2014 Bad Gateway: The server acts as a gateway and gets an invalid response from an inbound host.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>503 <\/strong>\u2014 Service Unavailable: The server is unable to process the request. This often occurs when a server is overloaded or down for maintenance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>504 <\/strong>\u2014 Gateway Timeout: The server was acting as a gateway or proxy and timed out, waiting for a response.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is an HTTP status code? An HTTP status code is a server response to a browser\u2019s request. When you visit a website, your browser sends a request to the site\u2019s server, and the server then responds to the browser\u2019s request with a three-digit code: the HTTP status code. These status codes are the Internet [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":111,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-105","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-control-panel"],"_links":{"self":[{"href":"https:\/\/www.vpsjungle.in\/tutorials\/wp-json\/wp\/v2\/posts\/105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vpsjungle.in\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vpsjungle.in\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vpsjungle.in\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vpsjungle.in\/tutorials\/wp-json\/wp\/v2\/comments?post=105"}],"version-history":[{"count":17,"href":"https:\/\/www.vpsjungle.in\/tutorials\/wp-json\/wp\/v2\/posts\/105\/revisions"}],"predecessor-version":[{"id":134,"href":"https:\/\/www.vpsjungle.in\/tutorials\/wp-json\/wp\/v2\/posts\/105\/revisions\/134"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.vpsjungle.in\/tutorials\/wp-json\/wp\/v2\/media\/111"}],"wp:attachment":[{"href":"https:\/\/www.vpsjungle.in\/tutorials\/wp-json\/wp\/v2\/media?parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vpsjungle.in\/tutorials\/wp-json\/wp\/v2\/categories?post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vpsjungle.in\/tutorials\/wp-json\/wp\/v2\/tags?post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}