See how to handle errors that occur when making API requests with Retrofit by creating an Either class that can represent both success and error.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4539-android-networking/lessons/18