HTTP protocol composition (Request status code)

Source: Internet
Author: User

HTTP request by: Request line; message header; Request Body composition

Request Line

Request Url:http://172.32.4.33:8080/operation/v2/autoserver/queryautoserver.htm//requesting address

Request Method:post//Requesting method

Status code:200 OK//Request State Code

Remote address:172.32.4.33:8080//remotely requested address

Referrer Policy:no-referrer-when-downgrade//indicates which jump page the request is from and displays the jump page address.

Server response Header

Content-type:application/json;charset=utf-8

date:wed, APR 2018 08:17:38 GMT

server:apache-coyote/1.1

Transfer-encoding:chunked

Request Header

Accept:application/json, Text/plain, */*//request header want to receive JSON plain data

Accept-encoding:gzip, deflate

accept-language:zh-cn,zh;q=0.9

Connection:keep-alive

Content-length:29

Content-type:application/json; Charset=utf-8

host:172.32.4.33:8080

origin:file://

tokenid:ae039c9cb7f948a89ac1b3dbd2135440

user-agent:mozilla/5.0 (Windows NT 10.0; WOW64) applewebkit/537.36 (khtml, like Gecko) chrome/65.0.3325.181 safari/537.36

Request Body

{beginpage:1, pagesize:10}

Beginpage:1

Pagesize:10

Where the request status code is very critical, the common request status code is:

1.200 OK indicates successful request

2.400 Bad Request indicates a syntax error for client requests and the server cannot parse

3.401 Unauthorized indicates unauthorized

4.403 Forbidden Server accepts a request, but refuses to service it

5.404 not Found request URL error, request address not found

6.500 Internal Server error server has unpredictable errors

7.503 Server Unavailable Server is currently unable to process client requests and may return to normal after a certain period of time

HTTP protocol composition (Request 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.