Simple parsing errors with retrofit
CallAdapter.Factory callAdapterFactory = new RxJava2ErrorAdapterFactory(new DefaultErrorConverter(),
RxJava2CallAdapterFactory.createWithScheduler(scheduler));//your scheduler here
return new Retrofit.Builder()
.baseUrl(baseUrl)//your api url
.addConverterFactory(GsonConverterFactory.create())
.addCallAdapterFactory(callAdapterFactory)
.build();