Represents an error that occurs when there is an internal server error.
An optional error message.
An optional HTTP status code associated with the error.
Optional
Static
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Create .stack property on a target object
Represents an error that occurs when there is an internal server error.
Param: msg
An optional error message.
Param: statusCode
An optional HTTP status code associated with the error.