Optional ReadonlyerrcodeOptional ReadonlyerrorOptionaleventOptional ReadonlyexpiryThe date at which a request can be reattempted.
ReadonlyharmsThe kinds of harms detected by the server.
https://github.com/matrix-org/matrix-spec-proposals/pull/4387 for a list of spec defined harms.
Optional ReadonlyhttpOptional ReadonlyhttpOptionalurlthis error expressed as a JSON payload for use by Widget API error responses.
The recommended delay in milliseconds to wait before retrying the request that triggered this error, or null if no delay is recommended.
safeGetRetryAfterMs for a version of this check that doesn't throw.
Check if this error was due to rate-limiting on the server side (and should therefore be retried after a delay).
If this returns true, getRetryAfterMs can be called to retrieve the server-side
recommendation for the retry period.
Whether this error is due to rate-limiting.
Staticfroma new MatrixError from a JSON payload received from Widget API error responses.
This error is thrown when the homeserver refuses to handle an action due to a safety concern.
See
https://github.com/matrix-org/matrix-spec-proposals/pull/4387