Skip to content

Commit ea5ffde

Browse files
HopefulLlamadougwilson
authored andcommitted
docs: add entity parse failed error documentation
closes #378
1 parent 0b58196 commit ea5ffde

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,13 @@ contained an encoding but the "inflation" option was set to `false`. The
300300
`'encoding.unsupported'`, and the `charset` property will be set to the
301301
encoding that is unsupported.
302302

303+
### entity parse failed
304+
305+
This error will occur when the request contained an entity that could not be
306+
parsed by the middleware. The `status` property is set to `400`, the `type`
307+
property is set to `'entity.parse.failed'`, and the `body` property is set to
308+
the entity value that failed parsing.
309+
303310
### request aborted
304311

305312
This error will occur when the request is aborted by the client before reading

0 commit comments

Comments
 (0)