Skip to content

Commit

Permalink
Readme: limitError is in config.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTail committed Aug 18, 2024
1 parent 552b34b commit fd64584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ origins of errors that could happen in runtime and be handled the following way:
- Others, inheriting from `Error` class (`500`);
- Ones related to routing, parsing and upload issues — handled by `ResultHandler` assigned to `errorHandler` in config:
- Default is `defaultResultHandler` — it sets the response status code from the corresponding `HttpError`:
`400` for parsing, `404` for routing, `upload.limitError.statusCode` for upload issues, or `500` in any other case.
`400` for parsing, `404` for routing, `config.upload.limitError.statusCode` for upload issues, or `500` for others.
- `ResultHandler` must handle possible `error` and avoid throwing its own errors, otherwise:
- Ones related to `ResultHandler` execution — handled by `LastResortHandler`:
- Response status code is always `500` and the response itself is a plain text containing original `error.message`.
Expand Down

0 comments on commit fd64584

Please sign in to comment.