title: How to include HTTP status codes in the response of a WADL file generated by Jersey
body: <p>I've developed a simple RESTful WS with a few methods which will respond different HTTP status codes if a resource is available or a parameter left empty for example.</p>
  
  <p>From the view of the source code I've no problems to send own status codes or just the 200 ok as a result. </p>
  
  <p>For example two possible return statements for one method:</p>
  
  <pre><code>return Response.status(460).entity("Key not found").build();
  </code></pre>
  
  <p>or </p>
  
  <pre><code>return Response.ok(text,MediaType.TEXT_HTML).build();
  </code></pre>
  
  <p>When I take a look at the generated WADL file the entry for the possible response is only defined as the following</p>
  
  <pre><code>&lt;method name="DELETE" id="aMethod"&gt;
    &lt;response&gt;&lt;representation mediaType="text/html"/&gt;
    &lt;/response&gt;
  &lt;/method&gt;
  </code></pre>
  
  <p>Is it possible to use some kind of annotations or do an other workaround to instruct the WADL generator to generate entries like the following?</p>
  
  <pre><code>&lt;response status="201"&gt;  
    [...]
  &lt;/response&gt;  
  </code></pre>
  
  <p>and in general multiple responses with parameters for example.</p>
  
  <pre><code> &lt;response status="201"&gt;
     &lt;param name="location" style="header" type="xsd:anyURI" required="true"&gt;  
       &lt;link resource_type="#entry" rel="self"/&gt;  
      &lt;/param&gt;  
     &lt;representation href="#entry"/&gt;  
   &lt;/response&gt;   
  </code></pre>
  
  <p>Does anyone have a clue how to integrate this kind of informations into the generation of a WADL file with Jersey/ JAX-RS?</p>