title: Android Retrofit + Rxjava: How to get response on non200 code?
body: <p>This is how my request looks like:</p>
  
  <pre><code>ApiService apiService = retrofit.create(ApiService.class);
  Observable&lt;Response&lt;UserUpdateResponse&gt;&gt; response = apiService.updateUser(Utils.getHeader(), object);
  
  response.subscribeOn(Schedulers.newThread())
              .observeOn(AndroidSchedulers.mainThread())
              .subscribe(this::onSuccessUpdate,
                      this::onErr,
                      this::hideDialogLoading);
  </code></pre>
  
  <p>It's supposed to return <code>'code':'205' 'msg':'successfully update'</code>. But when server response any code 201,202 (anything not 200) it will go to error. 
  <br><br>Here is the Error.</p>
  
  <blockquote>
    <p>java.net.ProtocolException: HTTP 205 had non-zero Content-Length: 121</p>
  </blockquote>
  
  <p>So how do I prevent it from error, or how do I get error body? Thank you!.</p>