matrix-js-sdk
    Preparing search index...

    Function parseErrorResponse

    • Attempt to turn an HTTP error response into a Javascript Error.

      If it is a JSON response, we will parse it into a MatrixError. Otherwise we return a generic Error.

      Parameters

      Returns Error