How to easily check server response code?
When you start on WordPress, you you may encounter different HTTPS statuses. We are all afraid to hear that our site has broken links, but how to quickly find and remove them? What kind of redirect to put if now all your URLs start with www? How to collect all four hundredths and five hundredths? I propose to talk about everything in order.
The simplest task is to check the server response code. The next step is to remember the server response classes, and after that, each response code. There are 5 classes in total and several dozen codes, of which only a few are really worth knowing and remembering without the help of Google.
Briefly about what is the server response code
Every time you click on a link or enter a URL of website into the address bar, you are sending a request to the server. It processes it and generates a response in which the initial part shows the server status code.
The server response code (or HTTP status code) is the first three digits and a phrase in English that make it clear to the user (browser), crawler and search robot how the site responded to a request for a particular page or document. For example, the page response code 200 OK speaks for itself: “Everything is OK, you have reached the right address.”
All response codes are divided into 5 classes, and the first digit distinguishes them:
1xx is an information class that the client needs when working with data transmission or processing. Most of them are official and are rarely seen in everyday work.
2xx – HTTP code that indicates the successful processing of the request by the server.
3xx – the three hundredth code indicates a redirection of the request from one address to another. By the way, newcomers to SEO are most worried about exactly what kind of redirect to put. So we’ll come back to this issue.
4xx is a status code that indicates an error on the user’s side. The reason for the error is explained by the phrase after the three digits of the code.
5xx is also an error code, but in this case it occurred on the server side. The reasons vary, but as with the fourth class codes, the reason is always described after the code number: sometimes it indicates high load, sometimes it indicates internal errors on the server.
How to check the page response code?
There are many ways to check the server response code: the developer toolbar in the browser ( F12 + Network tab), browser plugins, special online services, various SEO services. But I still work for Netpeak Software, so I’ll show you how to do it with our Netpeak Spider tool.
Registered, downloaded Netpeak Launcher, installed Netpeak Spider, launched it. Then there is a choice depending on your tasks:
Checking the response of the server code on all pages of your site;
Bulk check of the server response code against the list of pages.
Checking the server response code on all pages of the site
In the main interface of the program, enter the URL of your site and click the “Start” button. After the scan is completed, you will see all response codes in the corresponding column of the table.
Pages that responded with 4xx and 5xx response codes will be collected in a separate report for these errors. When you click on an error in the sidebar, the program will collect a report for those pages only.
Then you can see all the pages on your site that lead to such 4xx and 5xx pages. Replace these links with working pages, and you will get rid of the nightmare of broken links on your site. For this, call the context menu with the right mouse button and click on the “Incoming Links” section. Additionally, you can:
- recheck the results;
- open these pages in third-party services (for example, Serpstat, Ahrefs, Google Pagespeed Insights);
- play with other reports.
A response came from the server with the code xxx – what does this mean?
Let’s take a look at the most popular HTTP response codes separately to understand their purpose.
200 OK
A response that indicates a successfully processed request: the server gave a response → the page was found → the information was transferred to the client.
301 Moved Permanently
The requested document has been moved to another URL permanently.
This is the server response code that causes the most questions for beginners. In fact, the answer is simple: all pages from which users need to be permanently redirected to another page (duplicates, deleted pages, mirrors, and all sorts of things that you won’t tell Google about in confession) should respond with this code.
After crawling such pages, search engines will sooner or later “glue” them to the redirect landing page and pass on the link juice. And, of course, try to remove all links to pages inside the site that give 301 response codes, and put down the redirect landing page right away.
401 Unauthorized
A code that indicates that the user has not yet been authenticated, or the data is incorrect.
403 Forbidden
Access is denied. The server has received the request, but is refusing to fulfill it due to access restrictions (for example, when the user wants to view system files or other documents to which he does not have access).
404 Not Found
Nothing was found at the address the client contacted. Be sure to set up this answer on your site for non-existent pages, because search engines may index such pages incorrectly, and you will get a whole list of them in the SERP.
500 Internal Server Error
The error indicates that the server cannot process the request. This is any unexpected situation for the server, the cause of which he is not able to determine (it does not correspond to any other five-hundredth error).
503 Service Unavailable
The server is unavailable and requests are temporarily unavailable for technical reasons. The most common response you see is when the server is under maintenance or overloaded.
Summing up
Finally, let’s go over everything that has already been said: The server response code is three numbers and a phrase in English that make it clear to the user (browser), crawler and search robot how the site responded to a request for a specific page or document.
Source: hostens.com