[Php]http's status code

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.