Digital Engine note · Saved from Facebook

What happens after entering the URL: from Request to Status Code

Use a simplified web page request process to understand how Request Headers, Response Headers and 2XX, 3XX, 4XX, and 5XX status codes describe the results of resources.

Source note

This note preserves the original context of the Facebook post. Some tools, interfaces, and external links may have changed.

View the original posthttps://www.facebook.com/searchenginecommunity/posts/pfbid0wGAsQ5cCpw7svnw91cwM2vM8DkTqkCcSM5smm9mHAJHtfeT4UXb2WWLJ2nvNrDQol

HTTP Request Lifecycle’s Facebook post with image 1
Picture 2 of

HTTP Request Lifecycle’s Facebook post
Picture 3 of

HTTP Request Lifecycle’s Facebook post HTTP Request Lifecycle’s Facebook post with image 4

After entering the URL in the browser and pressing Enter, the browser sends a request to the server, and the server sends back a response describing the status of the resource.

Request Headers will bring information such as User-Agent, target path, and supported compression methods.

Response Headers will describe the return file and server processing results, among which the Status Code is most commonly used by SEO workers.

2XX usually means success, 3XX means you need to go to another location, 4XX usually means there is a problem with the request or the resource itself, and 5XX usually means a server-side error occurred.

After understanding this basic process, 404, 301, HTTPS, cache and crawler are no longer separate terms, but different signals in the life cycle of the same web page request.

Keep exploring

Related reading

Article

How Search Engines Work: Crawling

Crawling is the first step in search. A crawler starts with a URL, visits it, discovers more URLs, and repeats the cycle. The concept sounds simple, but it contains many important SEO details.