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
The error message to include.
Param
The HTTP response status code.