Skip to content

Commit abfe3c9

Browse files
committed
Update limits section in docs
1 parent 90c328b commit abfe3c9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

readme.md

+1-8
Original file line numberDiff line numberDiff line change
@@ -325,14 +325,7 @@ Then you will receive:
325325

326326
## Limits
327327

328-
On limits (if some of them set) `then-busboy` will throw an error,
329-
there are exposed classes that you can use to handle each kind of limit errors:
330-
331-
- FieldSizeLimitError - on field size limit reached
332-
- FieldsLimitError - on fields limit reached
333-
- FileSizeLimitError - on file size limit reached
334-
- FilesLimitError - on files limit reached
335-
- PartsLimitError - on parts (both files and fields) limit reached
328+
When`limits` options are set, `then-busboy` may reject with HTTP 413 error if specified limit(s) exceeded. That will be a regular error from object [`http-errors`](https://npmjs.com/http-errors) package.
336329

337330
## Related links
338331

0 commit comments

Comments
 (0)