I\'m trying to upgrade to Retrofit 2.0 and add RxJava in my android project. I\'m making an api call and want to retrieve the error code in case of an error response from th
Inside onError method put this to get the code
((HttpException) e).code()