Construct a Matrix error. This is a JavaScript Error with additional information specific to the standard Matrix error response.
The Matrix error JSON returned from the homeserver.
Optional
httpStatus: numberThe numeric HTTP status code given
Optional
url: stringOptional
event: MatrixEventOptional
Readonly
errcodeOptional
eventOptional
Readonly
httpThe numeric HTTP status code given
Optional
urlGenerated using TypeDoc
Construct a generic HTTP error. This is a JavaScript Error with additional information specific to HTTP responses.
Param: msg
The error message to include.
Param: httpStatus
The HTTP response status code.