4×× 客户端错误
411 Length Required 长度要求
服务器拒绝接受没有定义 Content-Length1的请求.
如果客户端在请求消息中添加了包含消息正文长度的有效 Content-Length 头字段,则客户端可以重复请求.
- 1 Content-Length RFC7230 Section 3.3.2
- Source: RFC7231 Section 6.5.10
411 代码参考
Rails HTTP Status Symbol :length_required
Go HTTP Status Constant http.StatusLengthRequired
Symfony HTTP Status Constant Response::HTTP_LENGTH_REQUIRED
Python2 HTTP Status Constant httplib.LENGTH_REQUIRED
Python3+ HTTP Status Constant http.client.LENGTH_REQUIRED
Python3.5+ HTTP Status Constant http.HTTPStatus.LENGTH_REQUIRED