The HTTP status code is a 3-digit code used to indicate the HTTP response status of a web server. The first digit of all status codes represents one of five statuses of the response. When a user attempts to access content on a running host through the HTTP or FTP protocol, the Web server returns a numeric code indicating the status of the request. This status code is recorded in the server log and may also be displayed in a web browser or FTP client. That is, when an error occurs when we open the page, the error message code displayed by the browser. Status codes can indicate whether a specific request was successful or not, and can also reveal the exact reason why a request failed. The meanings of HTTP protocol status codes are mainly divided into five categories, which are:
According to Google search statistics, the following are the most common errors, among which HTTP 500 errors are twice as likely to occur as 404 errors: 500 Internal Server Error The definition of HTTP 500 error has proven that this is one of the most common HTTP errors. Generally speaking, HTTP 500 errors occur when there is an error in the server's program code, or when an internal error occurs on the web server. For example, a web server will not be able to properly process access requests when it is overloaded. 404 File Not Found Most people are aware of this mistake. A 404 error occurs when a user attempts to access a resource on a web server (usually a web page) that does not actually exist. A 404 error could be caused by a broken link, a misspelling in the URL, or because the web host has moved the requested page to another location (or deleted the requested page). Some websites set up custom pages to prevent the adverse effects of bad links. 403 Forbidden A 403 error is similar to a 401 error, except that a 401 error is unauthorized, while a 403 error is forbidden. Any login will not work for 403 errors. A 403 error occurs when you try to access a (banned) website directory. 400 Bad Request The web server returns the HTTP 400 error to tell the visitor that the program the visitor uses to access the website has an error or the access request has been damaged during the process. 401 Unauthorized When a visitor attempts to access a restricted page but is not authorized, the website returns an HTTP 401 error. Incorrect login attempts are the main cause of this error. 200 Request successful The request was successful and the expected response header or data body will be returned with this response. 206 Partial content The server has successfully processed part of the GET request. HTTP download tools like FlashGet or Xunlei use this type of response to resume downloading, or to split a large document into multiple download segments and download them simultaneously. 301 Permanent Redirect The requested resource has been permanently moved to a new location, and any future references to this resource SHOULD use one of the URIs returned in this response. 302 Temporary Redirect The requested resource is now temporarily responding to the request from a different URI. Since such a redirection is temporary, the client SHOULD continue to send subsequent requests to the original address. 502 Bad Gateway The server, acting as a gateway or proxy, received an invalid response from an upstream server while attempting to perform a request. For more information about HTTP status codes, please refer to the following related articles list. You may also be interested in:
|
<<: JavaScript clicks the button to generate a 4-digit random verification code
>>: Basic operations of mysql learning notes table
Problem Description Several machines recently dis...
Preface Note: The test database version is MySQL ...
Question 1: The writing method that will report a...
When installing a virtual machine, a prompt appea...
All the orchestration files and configuration fil...
The hyperlink a tag represents a link point and i...
Mysql5.5 dual machine hot standby Implementation ...
Data Sheet /* Navicat SQLite Data Transfer Source...
Next, I will install Java+Tomcat on Centos7. Ther...
About let to avoid problems caused by closure Use...
<br /> Note: All texts, except those indicat...
Monitoring method in Vue watch Notice Name: You s...
If you have developed DApps on Ethereum, you may ...
This case is based on CentOS 7 system Suitable fo...
This article describes how to configure time sync...