Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/patterns/error-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ But for `status` it can be a little bit confusing, since it can be used both as

It could either be **return** or **throw** based on your specific needs.

- If an `status` is **throw**, it will be caught by `onError` middleware.
- If an `status` is **return**, it will be **NOT** caught by `onError` middleware.
- If a `status` is **throw**, it will be caught by `onError` middleware.
- If a `status` is **return**, it will be **NOT** caught by `onError` middleware.

See the following code:

Expand Down