fun setErrorFactory(errorFactory: Callable<Response<*>!>!): Unit
Set the error response factory to be used when an error is triggered. This factory may only return responses for which Response#isSuccessful() returns false.
Response#isSuccessful()