title: How to Read error body in Retrofit when response is not successful?
body: <p>I am using retrofit in Android for api execution.</p>
  <p><strong>Sample Snippet</strong></p>
  <pre><code> Call&lt;UniversalPojo&gt; call = apiInterface.storeData(AppClass.getInstance().getLoggedInUser().getRemember_token(), requestBody);
              call.enqueue(new Callback&lt;UniversalPojo&gt;() {
                  @Override
                  public void onResponse(Call&lt;UniversalPojo&gt; call, Response&lt;UniversalPojo&gt; response) {
                  
                      if (response.isSuccessful()) {
  
                          
                      } else {
                         
                         //I want to read code at this stage in string.
                         
                      }
                  }
  
                  @Override
                  public void onFailure(Call&lt;UniversalPojo&gt; call, Throwable t) {
   
                      t.printStackTrace();
                    
  
                  }
              });
  </code></pre>
  <p>My question here is how to obtain the error in String at else block of if (response.isSuccessful()).</p>