Just as people respond to requests with words, web servers respond to requests submitted through search engines with various codes. When a user accesses a website through a search engine to perform an action, the server responds to their requests using HTTP codes. HHTP status codes are an internet protocol used to establish communication between the user and the server. These codes help determine the state of communication between the search engine and the server and whether any errors have occurred. Each code has its own function and purpose. For example, you have probably all encountered a 404 code when a page you requested could not be found. This is a code everyone is familiar with and has encountered at least once. But what other codes exist that we have not encountered before, yet “talk” to the server on behalf of our requests? Let us explore the answer to this question in detail.
HTTP status codes are divided into 5 categories according to the types of functions they perform:
1xx- Informational codes
The codes in this category indicate that the server has received the request and that processing is continuing so a final response can be provided. Examples of these codes include:
100-Continue code
When a user sends a request to the server, the server reviews the request, considers what response to give and then delivers the final response to the user through the search engine. The consideration stage of this request-and-response process is handled by the 100 http code. From this, we can conclude that the 100-Continue code is temporary and remains in effect until the final response is given, meaning until the process is complete.
102- Processing
Sometimes, providing a final response to a request takes longer than usual. During this time, the server uses the 102 http code to inform the other party that the request is still being processed.
2xx-Success!
Codes in this category are used when a request has been answered successfully and the requester’s needs have been met. Examples of success codes include:
200- Successful request
This code is used when the server responds positively to a request submitted by a user, meaning that the requester’s needs have been met. Having this code on every page of a website is ideal for the SEO process, because bots evaluate pages with this code positively when reviewing websites. In other words, search engines prefer to show users pages where everything is in order and functioning properly, rather than pages that have problems or cannot be found.
3xx-Redirection
These redirection codes are used when a request has been received successfully, but the required response is available at a resource other than the requested page. For example, when you request a page, if its URL, meaning its location, has changed, these codes redirect you to the content’s other address. In short, before responding to you with 2xx codes, the server attempts to direct you to the right location using 3xx codes. Examples of these HTTP codes include:
301-Permanent redirect
Suppose a website writes a blog post on “What is SEO” and publishes it on a page, setting its URL structure to “https://www.maniy.az/bloq/seo/” as its URL. However, it later assigns a different URL to this page, changing it to “https://www.maniy.az/bloq/seo-haqqinda-bilmeli-oldugunuz-her-sey”. Then, when a user searches, sees the first URL and clicks this link, the 301 code takes effect, immediately and permanently redirecting the user or search engine to the 2nd URL, which will meet the user’s needs. The next time, search engines remember this detail and understand that the main content will always be at the new URL and that they should no longer use the old URL. After a while, the search engine no longer displays the old URL in its results.
302-Temporary redirect
Like 301, the 302 code redirects between different URLs. However, there is a difference: here, the content the user wants to access is available at another resource temporarily rather than permanently. The 302 http code informs the search engine that the requested content has temporarily moved to another URL and that the user’s request should still be answered with the original page next time. There is one detail we should not forget. A 302 code used several times will, after a while, be interpreted by the search engine as a 301, meaning a permanent redirect. In other words, when the server continually responds to the search engine with 302, after a while the search engine assumes that the content has permanently moved to the new URL.
304-Not Modified
When a user visits a page on a website, the browser stores this resource. The next time the user requests that page, the server responds to the search engine with a 304 code to indicate that the unchanged version of the content, meaning the same version, can still be used.
4xx-Client error
These error codes appear when a client requests information that does not exist on the server or that they are not permitted to access. In other words, these codes relate to a problem originating entirely from the requester. Let us look at some of these client error codes:
403-Forbidden
This code appears when a user requests information they are not authorized to access. If the requester does not have permission to access an existing resource, the server informs the search engine through the 403 code that access is forbidden.
404-Not Found
This well-known http code indicates that the resource requested by the user cannot currently be found on the server. This code appears when the user enters a request incorrectly or when the information they are looking for does not exist on the website. Having many pages with a 404 code on a website can negatively affect the SEO process. Therefore, you can assign a 301 code to some 404 pages to redirect users to the page that may be most relevant to the resource they are looking for.
410- Gone
This code is used when the requested information previously existed on the server but has now been permanently removed. Google bots do not review this page during their next crawl. If the page is temporarily unavailable and may be added back to the server in the future, using a 404 code is more appropriate.
5xx-Server error
Unlike those in the 4xx category, codes in this category relate to problems originating entirely from the server. These codes are used when the requester’s needs cannot be met because of an issue or problem with the server’s operation. This can happen most often when the server is overloaded or undergoing maintenance. Examples of server error codes include:
503-Service Unavailable
The most well-known server error code, 503, is used when the server is temporarily unable to respond to users’ requests because it is overloaded or undergoing maintenance. To prevent this situation, the server can be optimized to handle a greater load.
The codes listed above represent only a portion of the existing HTTP status codes. The correct use of these and other status codes and reducing error codes on the website as much as possible are among the factors that affect the results of the SEO process.


