1. Classification
100~199 indicates a successful acceptance of the request, requiring the client to continue submitting the next request in order to complete the process.
200~299 indicates that the request has been successfully received and the entire process has been completed, typically 200
300~399 to complete the request, the customer needs to refine the request further. For example, the requested resource has been moved to a new address, commonly used 302, 304
400~499 client request error, common 404
500~599 server error, common 500
2. General Introduction
1) 302, the server sends a 302 ID to the browser that tells the browser that the resource for this page has moved to the new address, needs to jump, and sends the corresponding new page address to the browser.
For example:
(Status-line) http/1.1 10pfoundconnection Keep-alivecontent-length0Content-type text/html; charset=utf-8Date Sat, -Dec the -:Wuyi: -Gmtkeep-alive timeout=5, max= -Location b.phpserver Apache/2.4.4(Win64) php/5.6.4X-powered-by php/5.6.4
Code:
<? PHP // not only can jump to this website page also can jump to other website Header ("location:b.php");? >
2) 404 page does not exist
3) 304 resources are not modified, that is, the cache exists!
[Php]http's status code