2015-11-06 21:39:33 +01:00
|
|
|
---
|
|
|
|
set: 4
|
|
|
|
code: 411
|
|
|
|
title: Length Required
|
2015-11-07 05:34:40 +01:00
|
|
|
references:
|
|
|
|
"Rails HTTP Status Symbol": ":length_required"
|
2016-01-27 23:08:33 +01:00
|
|
|
"Go HTTP Status Constant": "http.StatusLengthRequired"
|
2015-11-06 21:39:33 +01:00
|
|
|
---
|
|
|
|
|
2015-11-09 02:44:05 +01:00
|
|
|
The server refuses to accept the request without a defined
|
|
|
|
Content-Length<sup>[1](#ref-1)</sup>.
|
2015-11-07 06:45:46 +01:00
|
|
|
|
|
|
|
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.
|
2015-11-07 05:34:40 +01:00
|
|
|
|
2015-11-09 02:44:05 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
* <span id="ref-1"><sup>1</sup> Content-Length [RFC7230 Section 3.3.2][2]</span>
|
|
|
|
* Source: [RFC7231 Section 6.5.10][1]
|
2015-11-07 05:34:40 +01:00
|
|
|
|
|
|
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.10>
|
2016-01-27 23:08:33 +01:00
|
|
|
[2]: <http://tools.ietf.org/html/rfc7230#section-3.3.2>
|