HttpResponseCallback: (err: number | string | Error | null, response?: *) => any

Type declaration

    • (err: number | string | Error | null, response?: *): any
    • Parameters

      • err: number | string | Error | null

        The error code, message, or exception in the case where the request fails.

      • Optionalresponse: *

        The response data if no errors were encountered. (format depends on response type: text, Object, ArrayBuffer, XML).

      Returns any