I have a WS which returns 200 with no body if successful or 420 with json in error body is unsuccessful
Return type is
Observable<Response<Void>>
For some reason in case of error with 420 code onNext(Response<Void> value) is called instead of onError(Throwable e) which is being called for any other unsuccessful requests.
Why only in this case onNext instead of onError is called? It is possible to call onError if the request didn't returned 200?