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.

    Returns

    Parameters

    • response: Response | XMLHttpRequest

      response object

    • Optional body: string

      raw body of the response

    Returns Error

Generated using TypeDoc