onFailed

abstract fun onFailed(id: Long, @NonNull error: HttpRequestError)

Called once if the request couldn't be completed. This method may be called at any point in the request's lifetime prior to completion. I.e., it may be called after onResponse and after onData have been called.