title: Jersey MessageBodyWriter not found for media type=text/plain
body: <p>I'm trying to follow the Jersey docs to enable a non-200 response if an error occured (<a href="https://jersey.java.net/documentation/latest/representations.html#d0e3586" rel="noreferrer">https://jersey.java.net/documentation/latest/representations.html#d0e3586</a>)</p>
  
  <p>My code looks like :</p>
  
  <pre><code>@POST
  @Produces(MediaType.TEXT_PLAIN)
  @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
  public ResponseBuilder getData(@FormParam("one") String one,@FormParam("two") String two,@FormParam("three") String three) {
      if(one.isEmpty() || two.isEmpty() || three.isEmpty()) {
          logger.error("Missing params for getData");
          throw new WebApplicationException(501);
      }
      return Response.ok();
  }
  }
  </code></pre>
  
  <p>This unfortunately yields the following error :</p>
  
  <blockquote>
    <p>[2015-02-01T16:13:02.157+0000] [glassfish 4.1] [SEVERE] [] [org.glassfish.jersey.message.internal.WriterInterceptorExecutor] [tid: _ThreadID=27 _ThreadName=http-listener-1(2)] [timeMillis: 1422807182157] [levelValue: 1000] [[
      MessageBodyWriter not found for media type=text/plain, type=class org.glassfish.jersey.message.internal.OutboundJaxrsResponse$Builder, genericType=class javax.ws.rs.core.Response$ResponseBuilder.]]</p>
  </blockquote>