Skip to content

Commit

Permalink
Update limits section in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
octet-stream committed Jun 9, 2021
1 parent 90c328b commit abfe3c9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,14 +325,7 @@ Then you will receive:

## Limits

On limits (if some of them set) `then-busboy` will throw an error,
there are exposed classes that you can use to handle each kind of limit errors:

- FieldSizeLimitError - on field size limit reached
- FieldsLimitError - on fields limit reached
- FileSizeLimitError - on file size limit reached
- FilesLimitError - on files limit reached
- PartsLimitError - on parts (both files and fields) limit reached
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.

## Related links

Expand Down

0 comments on commit abfe3c9

Please sign in to comment.