What are HTTP status codes?

preview_player
Показать описание
HTTP status codes are three-digit responses from the server to the browser-side request.

HTTP status codes (also called response status codes or HTTP response codes) serve as a means of communication between the server and the internet browser.

Whenever you visit a website, your browser sends a bunch of requests to the web server hosting the website, asking it to find all the resources needed to show you the page.
That means all the text you see, the nice images and videos on the page, and all the scripts and code hidden behind the scene of a website.
These are all delivered to you through a series of requests from your browser (the client) to the website server.
And instead of you blindly guessing what happened and if everything got delivered as requested, the server is nice enough to tell you how it handled all of your requests by giving you an HTTP status code for each request your browser made to the server.

To give you an overview of what type of response you got back from the server, the HTTP status codes are split into 5 different categories. Each category will give you hints as to what the response was, even if you don't know the specific response code.

Status codes starting with 1xx are Informational
Status codes starting with 2xx are Successful
Status codes starting with 3xx are Redirection
Status codes starting with 4xx are Client Errors
Status codes starting with 5xx are Server Errors

In this video, we'll go through how HTTP status codes work, what they do, and what each of the 5 categories means.

Timestamps
00:00 Intro
01:03 1xx Informational
01:31 2xx Successful
01:58 3xx Redirection
02:33 4xx Client Errors
03:11 5xx Server Errors
04:10 How to check the server response code of a page
Рекомендации по теме