Skip to content

Commit

Permalink
chore: Updated readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShogunPanda committed Feb 3, 2024
1 parent 7e05aa5 commit 8c14b34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ The main error class.

The constructor signature is the following:

```
constructor(status, [message], [properties])
```javascript
constructor(status, message, properties)
```

Where:

- `status`: A HTTP status code as number or a identifier (like: `NotFound`). If the identifier is not valid or the number outside the validity range (`400 <= status <= 599`), it defaults to 500.
- `message`: The error message.
- `properties`: A list of additional properties to attach to the error. With the exception of `code`, `message`, `stack`, `expose` and `headers`, all properties that already exist in the object are ignored.
- `message`: The error message. This is optional.
- `properties`: A list of additional properties to attach to the error. With the exception of `code`, `message`, `stack`, `expose` and `headers`, all properties that already exist in the object are ignored. This is optional.

The returned instance is a descendant class of `Error` with the following base properties, plus all the other properties specified in the constructor:

Expand Down

0 comments on commit 8c14b34

Please sign in to comment.