Android, Android Retrofit, Retrofit, Interceptors.
.addInterceptor(errorInterceptor) .addInterceptor(customInterceptor) .addInterceptor(offlineInterceptor) // Add offline interceptor .build() val retrofit = Retrofit.Builder() .client(okHttpClient) .baseUrl(BASE_URL) .addConverterFactory(GsonConverterFactory.create()) .build() Conclusion: