1.3.1. The Response line
------------------------
Line 1 is the "response line". It is always composed of 3 fields :它总是由3个域组成
- a version tag : HTTP/1.1 版本tag
- a status code : 200 返回状态码
- a reason : OK
The status code is always 3-digit. The first digit indicates a general status :
状态代码总是三位数。第一位数字表示大致的状态
- 1xx = informational message to be skipped (eg: 100, 101)
- 2xx = OK, content is following (eg: 200, 206)
- 3xx = OK, no content following (eg: 302, 304)
- 4xx = error caused by the client (eg: 401, 403, 404)
- 5xx = error caused by the server (eg: 500, 502, 503)
Please refer to RFC2616 for the detailed meaning of all such codes. The
"reason" field is just a hint, but is not parsed by clients. Anything can be
found there,
haproxy The Response line
最新推荐文章于 2022-12-26 18:15:32 发布