Skip to content

Commit

Permalink
Indicate that statusCode is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
kanongil authored Aug 25, 2020
1 parent 441c0fa commit 2aa2cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ var error = new Error('Unexpected input');
Boom.boomify(error, { statusCode: 400 });
```

##### `isBoom(err, statusCode)`
##### `isBoom(err, [statusCode])`

Identifies whether an error is a `Boom` object. Same as calling `instanceof Boom.Boom`.
- `err` - Error object.
Expand Down

0 comments on commit 2aa2cda

Please sign in to comment.