Introduction to HTTP status codes


1: What does http status code mean

HTTP status code (English: HTTP Status Code) is a 3-digit code used to indicate the response status of the web server Hypertext Transfer Protocol . It is defined by the RFC 2616 specification and extended by RFC 2518, RFC 2817, RFC 2295, RFC 2774, and RFC 4918. The first digit of all status codes represents one of the five statuses of the response. The message phrases shown are typical, but any readable alternatives may be provided. Unless otherwise noted, status codes are part of the HTTP/1.1 standard (RFC 7231).

The official registry of HTTP status codes is maintained by the Internet Assigned Numbers Authority.

Microsoft Internet Information Services sometimes uses additional decimal subcodes to obtain more specific information, but these subcodes only appear in the response payload and documents, not in place of the actual HTTP status code.

2: What is the use of http status code?

The core function of http status code is that the Web Server uses it to tell the client what happened to the current web page request. , or the current response status of the web server. Therefore, HTTP status codes are often used to determine and analyze the current operating status of the web server.

As programmers, we need to know as much as possible about these status codes, and understand these status codes one by one. When we encounter them at work, we can understand where the problem lies and how to target it. of solving problems.

Commonly used http status codes:

200 - The server successfully returned the web page

404 - The requested web page does not exist

503 - The service is unavailable

3: Where to check http status code

1. F12 debugging of the browser (or right-click to check), network check Status, status is the status code returned by http.

2. You can use online tools and enter the URL to check the HTTP status