title: Retrofit, callback for 204 No Content response?
body: <p>On Android, I initially implemented a Retrofit interface like this:</p>
  
  <pre><code>@DELETE(USER_API_BASE_URL + "/{id}")
  public void deleteUser(@Path("id") String id, Callback&lt;User&gt; callback);
  </code></pre>
  
  <p>The server returns 204 NO CONTENT upon a successful deletion. This was causing the callback to trigger failure, with <code>retrofit.RetrofitError: End of input at character 0 of</code>, as it was expecting a <code>User</code> object back with the response.</p>
  
  <p>I then rewrote it like this, using <code>Void</code> instead of <code>User</code>:</p>
  
  <pre><code>@DELETE(USER_API_BASE_URL + "/{id}")
  public void deleteUser(@Path("id") String id, Callback&lt;Void&gt; callback);  &lt;-- VOID
  </code></pre>
  
  <p>But I am getting the same error from the callback.
  What is the proper way to fix this? Thank you.</p>