I am running two async operations with a FlatMap. I am handling the Throwable if something happens with the HTTP request, but we have also created a system on the server side that will return back a successful response with an error code for the client to handle. I'm trying to figure out what to do in the first call of the FlatMap chain if this server error is returned.
@RobWin That is a really good idea man! I’m using Retrofit, which is a Java library for doing HTTP response / parsing. I could write an interceptor that checks for the error. Heck yes! Thank you. Just for my own knowledge, what would happen if I return null from the first flatMap observable?
@RobWin (I meant HTTP request / response parsing)
@RobWin (Err, that is still ambigious. It does the HTTP call and parses the response, lol)