Constructor
new MiddlewareError(message, statusCode, optionsopt)
Create a new MiddlewareError
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
message |
string | Error message |
|||||||||||||
statusCode |
number | HTTP status code to return to the client |
|||||||||||||
options |
Object |
<optional> |
Additional options Properties
|
- Source: