- Write it at the front
HTTP The status code is generated by the server , Used to tell the client , Encoding of the result processed by the server
1、 What is the function of status code ？ What are the characteristics of ？
The function of the status code is when the client sends a request to the server , Describe the response result of the server （ Such as ： Is the server processing normal or wrong ）;
Status code from 3 Digit number and Reason Phrase composition ,（ Such as ：200） The first digit in the number specifies the response level （ here 2 Indicates normal processing ）, The last two are not classified
2、 Common status codes
200： Indicates that the client's request has been processed by the server ;
204： Indicates that the client's request has been successfully processed by the server , But the response message returned by the server does not contain the main part of the entity ;
3XX The status code indicates that the browser needs to perform additional processing to properly handle the client's request ;
301： Permanent redirection . Indicates that the currently requested resource has been assigned to a new URI, In the future, new URI To get resources ;
302： Temporary redirections ;
303： Indicates that the resource requested by the client is assigned to a new URI, You should use GET Method to locate and obtain resources ;
304： Indicates that the client request message contains attached conditions （ Such as ： use GET Method request message contains ：if-Match、if-Range Wait for the first message ）, The server allows access to resources , But the conditions are not met （ The response message does not contain the main part of the entity ）
2.3、4XX Client error
4XX The status code indicates that an error has occurred in the client ;
400： Indicates that there is an error in the request message ;
401： Indicates that the request message needs to contain authentication information （ Such as ：HTTP authentication 、BASIC authentication ）;
403： Indicates that the requested resource was rejected by the server ;
404： Represents the resource that the client requests to access , The server could not find ;
2.4、5XX Server error
5XX The status code indicates that an error has occurred on the server ;
500： Indicates that an error occurred while the server was processing the client request ;
503： Indicates that the service is not available , Maybe the server is overloaded or the server has been shut down for maintenance ;
3、 Additional explanation ：
3.1、 Entity ： Payload data is transmitted as request and response , It is composed of entity body and entity head .
3.2、 Generally, the message body is equivalent to the entity body , Only when the message is encoded can there be a difference between the two .
- Communication and learning
The author's ability is limited . If there is any mistake , Be on the right track
read 《 The illustration HTTP》 Feeling -（ Return the result of HTTP Status code ） More articles about
- 《 The illustration HTTP》—— Return the result of HTTP Status code
Status code Overview The responsibility of the status code is when the client sends a request to the server , Describe the result of the returned request . With the help of the status code , The user can know that the server is processing the request normally , There are still mistakes . Status codes such as 200 OK, With 3 Digit number and Reason Phrase composition . Count ...
- The illustration HTTP summary （4）—— Return the result of HTTP Status code
HTTP The status code is responsible for representing the client HTTP The return result of the request . Mark whether the server-side processing is normal . Notification of errors, etc . Category of status code 2XX success 200 OK Indicates that the request from the client is processed normally on the server side . In response to ...
- HTTP=== Return the result of HTTP Status code
HTTP The status code is responsible for representing the client HTTP The return result of the request . Mark whether the server-side processing is normal . Notification of errors, etc . 1. The status code tells the result of the request returned from the server The responsibility of the status code is when the client sends a request to the server , Description return ...
- （ The third chapter , Chapter four ）http In the message http Information , Return the result of http Status code
The third chapter http In the message http Information be used for http The information of protocol interaction is called http message , Including request message and response message . 1. Coding increases transmission rate , During transmission, coding can effectively handle a large number of access requests . But the coding is done by a computer ...
- HTTP_4_ Return the result of HTTP Status code
Status code : Return request result . There are many kinds of status codes , The following summarizes the common status codes : Category Informational status code 1XX The server accepts the request , To continue processing Success status code 200 OK Request processed successfully , And return the resource ( In the response message ...
- Chapter four Return the result of HTTP Status code
Chapter four Return the result of HTTP Status code HTTP The status code is responsible for representing the client HTTP The return result of the request . Mark whether the server processing is normal . Notification of errors, etc . 1. Category of status code 2. 2XX success 200 OK Indicates that the server is normal ...
- The server returns a variety of HTTP Status code introduction
[ Abstract ]HTTP Status code (HTTP Status Code) Is used to represent a web server HTTP Responding to the state of 3 Digit code . It consists of RFC 2616 Specification defined , And get the RFC 2518.RFC 2817.RFC 22 ...
- Return the result of HTTP Status code
HTTP The responsibility of the status code is when the client sends a request to the server , Describe the result of the returned request . 2xx success 2xx The result of the response shows that the request is processed normally . 200 OK The request has been processed normally 204 No Content Request processed successfully , however ...
- The illustration HTTP note （ Four ）——HTTP Status code
The main content of this chapter is to understand HTTP The working mechanism of state code The responsibility of the status code is when the client sends a request to the server , Describe the result of the returned request . With the help of the status code , We can see if the request has been processed normally on the server side . The status code can be divided into ...
- UIImage transformation UIColor Memory will increase inexplicably, you can try another method
Generally, we will use this method to load the background image [self.view setBackgroundColor:[UIColor colorWithPatternImage:[[UIImage alloc]initWi ...
- Linux Disk usage 100% resolvent
/opt The partition is web The logs are full of , Some services can't work properly , therefore rm -fr Drop these logs ( near 11GB), But the service is still not back to normal , use df -hT see , The partition is occupied by 100%: [root@anjing opt ...
- xtrabackup Make a physical backup 、 recovery 、 Online clone from library 、 Online redo master-slave
http://www.lai18.com/content/4733997.html notes : The picture is from < Explain profound theories in simple language MySQL Database development Optimization and management maintenance The first 2 edition > Physical backup and recovery 1. Cold backup : Stop ...
- SpringMVC Simple introduction
SpringMVC Simple introduction I'd like to share with you my recent experience in SpringMVC Learning from , I hope this article can help you . First of all, what is SpringMVC? Spring The presentation layer is based on MVC Excellent design concept Web frame ...
- Tornado Asynchronous non blocking
Blocking and non-blocking Web frame Only Tornado and Node.js It's asynchronous and non blocking , All the others web Frames are all blocked . Tornado Both blocking and non blocking modes support . Blocking type : representative :Django.Flask.To ...
- Android Can't find the phone number solution
It looks like contacts have three databases , And it's not synchronized , In addition, there may be a version problem . Solution :https://github.com/codinguser/android_contact_picker Next, we will make some modifications to it ...
- Linux Lower installation VSCode
Download 64 Bit package : Address : https://code.visualstudio.com/docs/?dv=linux64&build=insiders 1. decompression : tar -zxvf cod ...
- Linux Compile below ffmpeg And use GDB debugging
1. stay Ubuntu Call command line interface on the interface , The most convenient way is to use shortcut keys Ctrl+Alt+T. 2. install SDL SDL Is an open source multimedia development library , Can set the image and video drawing and other operations . If not installed SDL,FFMPEG take ...
- HTML The third is （ Selector ）
This course is about CSS The selector in 1. Basic selector There are three basic selectors 1. The tag name selector The so-called tag selector is to use the tag definition directly in the style , For example, the following code : ( The feature of this selector is that all the same tagnames can be defined at the same time, and there is no need to ...
- css location position summary
stay CSS in ,Position Attributes are often used , Mainly absolute positioning and relative positioning , Simple use is no problem , Especially nested , There will be some confusion , To sum up , To prevent it from being forgotten for a long time . CSS position Property value : absol ...