onFailure

abstract fun onFailure(response: Response? = null, responseBody: String)

Called when the HTTP request fails.

Parameters

response

the response returned from the server

responseBody

the response body string returned from the server