title: Can I make Jersey use my MessageBodyWriter instead of returning 204 when a resource method returns void or null?
body: <p>I want to be able to write methods like this:</p>
  
  <pre><code>@GET
  @Template(SIGNUP_FORM)
  @Produces("text/html")
  public void form() {}
  </code></pre>
  
  <p>My MessageBodyWriter matches methods annotated with @Template, so this should work fine. However, Jersey skips my MessageBodyWriter and returns 204 (no content). To work around this, I have to do something like this:</p>
  
  <pre><code>@GET
  @Template(SIGNUP_FORM)
  @Produces("text/html")
  public Object form() { return new Object(); }
  </code></pre>
  
  <p>I can't return null either.</p>