Skip to content

Commit

Permalink
docs: add additional clarity around what non-http errors are
Browse files Browse the repository at this point in the history
  • Loading branch information
willfarrell committed May 19, 2023
1 parent b4cd4ff commit 860cc26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/middlewares/http-error-handler.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ npm install --save @middy/http-error-handler
## Options

- `logger` (defaults to `console.error`) - a logging function that is invoked with the current error as an argument. You can pass `false` if you don't want the logging to happen.
- `fallbackMessage` (default to null) - When non-http errors occur you can catch them by setting a fallback message to be used. These will be returned with a 500 status code.
- `fallbackMessage` (default to null) - When non-http errors (those without ``statusCode`) occur you can catch them by setting a fallback message to be used. These will be returned with a 500 status code.

## Sample usage

Expand Down

0 comments on commit 860cc26

Please sign in to comment.