In this article, we will discuss the most important HTTP Status Codes to improve SEO.
We will cove the following:
When you place a request to access a webpage, the browser contacts the server and the server responds with one of many possible three-digit HTTP status codes.
This is the way in which the server and browser communicate so that you can successfully, or unsuccessfully, view a webpage.
It is critical to use the appropriate HTTP status codes to inform both people searching for your site and the server of the correct situation.
You want to be sure that if a page is unable to be accessed, either permanently or temporarily, that the server and the browser use the appropriate corresponding categories and status codes.
Primary HTTP Status Code Categories
The primary five HTTP status code categories are three-digit numbers beginning with the numbers one through five.
Each of the five categories has a unique classification in addition to 40 individual status codes overall.
The following are the primary five categories:
The Essential HTTP Status Codes
This status code is often referred to as a permanent redirect. This means that the server will pass over the old page and the user will be directly transferred to the new page automatically without interruption. This is a search engine’s preferred status choice for redirects that are permanent.
The 302 is similar to the 301 only that it is considered a temporary redirect. The server will find the page, however, it may not send the user through to the new page. This status code is not recommended or effective to inform search engines of a temporary or uncommon situation.
A 404 status code result is a “file not found” error. The server will not find the page and everything will be missing. And, the server will be unable to determine if the situation is temporary or permanent. Search engines will continue trying to look for the page until another code is assigned or the site is back up and running.
There is also a Soft 404 Error, which is a little different, learn more about it here:
How to Fix Soft 404 Errors on Most WordPress Themes
A 410 tells the user that the page no longer exists. This code will not provide a forwarding address to redirect the user to a valid page. This is basically a dead end for users and servers. If you do see a 410 assigned to any page, it is best to assign a different code so that you do not lose traffic.
This HTTP status code equates to service unavailable. Basically, the server is unable to handle the request for any number of reasons such as a server overload, maintenance, or a temporary outage. It informs the search engine to try again later as the situation is not permanent. This is recommended for times when you are going to perform site maintenance.
How Can I Fix Status Errors?
Use the Chrome Development Tool to verify whether or not you have assigned the correct HTTP status codes to your websites.
- Using the Google Chrome browser, right click on a page and click on Inspect.
- Then choose the Network tab, and reload the page to view the real-time status of the page.
- On the top of the list, you will see your domain name. For this article, we will use google.com as an example. Click on google.com followed by the headers tab. Here, it will show the requested URL, the request method (GIT), and the current status code such as 200.
Another possible way to ensure your pages are assigned correctly is to use Screaming Frog’s SEO Spider Tool.
Use the tool to perform a crawl of any website and you will be able to see all listed HTTP status codes.
You can look for any problematic status code such as a 302, and if you see a 0, it is not a true status code. This numerical value simply means the page was not checked because the program was not asked to do so.
Another great tool that Mac users can take advantage of is Integrity.
It is free and has no limits, unlike the Screaming Frog’s basic version.
Additional Potential Issues
To avoid additional issues and to maximize your SEO, always check to be sure your server and user errors match.
You can double check your status code connections by loading a non-existent page to your site and ensure it returns a 404 status code.
Be sure to review the status code column so that each assigned code is, in fact, correct and true.
Keep in mind that if you inform the server of one action, it could show the user a different error which could be catastrophic. And, be sure to eliminate all 302s and replace them with 301 HTTP status codes for optimal results.
The correct HTTP status code is imperative for successful SEO. Many businesses choose to create a unique 404 page so that users and the search engines are aware that they should check back.
And, if you have deleted a page and wish to send users to a new page that has been created in its place, you want to use a 301 redirect so that you do not lose precious traffic.