Constructor
# new BadRequestError(msg) → {BadRequestError}
Represents a failure in the input data, typically thrown when a client sends invalid or incomplete data
Error (40) thrown when a bad request is received
Parameters:
| Name | Type | Description |
|---|---|---|
msg |
string
|
Error
|
The error message or Error object |
A new BadRequestError instance