mirror of
https://github.com/rmaake1/httpstatuses.git
synced 2024-10-06 08:07:21 +02:00
62df9e637c
* Add Python status constants * Add Python 2, Python 3+, Python 3.5+ status constants
25 lines
926 B
Markdown
25 lines
926 B
Markdown
---
|
|
set: 4
|
|
code: 411
|
|
title: Length Required
|
|
references:
|
|
"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"
|
|
---
|
|
|
|
The server refuses to accept the request without a defined Content-Length<sup>[1](#ref-1)</sup>.
|
|
|
|
The client MAY repeat the request if it adds a valid Content-Length header field containing the length of the message body in the request message.
|
|
|
|
---
|
|
|
|
* <span id="ref-1"><sup>1</sup> Content-Length [RFC7230 Section 3.3.2][2]</span>
|
|
* Source: [RFC7231 Section 6.5.10][1]
|
|
|
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.10>
|
|
[2]: <http://tools.ietf.org/html/rfc7230#section-3.3.2>
|