Constructor
new ErrorResponse(msg, code)
Creates a new instance of ErrorResponse.
- Source:
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
msg |
string
|
The error message to include in the response. | |
code |
number
|
400 | The status code of the response. Default is 400. |
Members
msg :string
The error message included in the response.
- Source:
Type:
-
string
statusCode :number
The status code of the response.
- Source:
Type:
-
number