Instantiates a new error with a message and an optional cause.
the error message.
the HTTP status code.
Optional
optional underlying cause of the error.
optional metadata to be reported.
source error (if any)
error message
additional metadata (if any)
Readonly
Instantiates a new error with a message and an optional cause.