Skip to content

Commit 230bcaf

Browse files
nikolaykrashnikovBethGriggs
authored andcommitted
doc: add HPE_UNEXPECTED_CONTENT_LENGTH error description
PR-URL: #34596 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ricky Zhou <[email protected]>
1 parent fd5153c commit 230bcaf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/api/errors.md

+11
Original file line numberDiff line numberDiff line change
@@ -2215,6 +2215,17 @@ malconfigured clients, if more than 8KB of HTTP header data is received then
22152215
HTTP parsing will abort without a request or response object being created, and
22162216
an `Error` with this code will be emitted.
22172217

2218+
<a id="HPE_UNEXPECTED_CONTENT_LENGTH"></a>
2219+
### `HPE_UNEXPECTED_CONTENT_LENGTH`
2220+
2221+
Server is sending both a `Content-Length` header and `Transfer-Encoding: chunked`.
2222+
2223+
`Transfer-Encoding: chunked` allows the server to maintain an HTTP persistent
2224+
connection for dynamically generated content.
2225+
In this case, the `Content-Length` HTTP header cannot be used.
2226+
2227+
Use `Content-Length` or `Transfer-Encoding: chunked`.
2228+
22182229
<a id="MODULE_NOT_FOUND"></a>
22192230
### `MODULE_NOT_FOUND`
22202231
<!-- YAML

0 commit comments

Comments
 (0)