Constructor
new AppError(message, statusCodeopt)
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
message |
string | Human-readable error description | ||
statusCode |
number |
<optional> |
400 | HTTP status code to return |
- Source: