title: Restful Webservice @Pathparam if blank always give 404 error
body: <p>I am following this example for builiding my first restful webservice</p>
  
  <p><a href="http://howtodoinjava.com/2013/06/03/exception-handling-in-jax-rs-resteasy-with-exceptionmapper/" rel="nofollow">http://howtodoinjava.com/2013/06/03/exception-handling-in-jax-rs-resteasy-with-exceptionmapper/</a></p>
  
  <p>**This is the method </p>
  
  <pre><code>@Path("/users/{id}")
  @GET
  @ValidateRequest
  public Response getUserBId  ( @PathParam("id") String id ) throws    MyApplicationException
  {
  </code></pre>
  
  <p>I am using the following softwares</p>
  
  <p>Neatbeans 7.4
  Glassfish 4.0</p>
  
  <p>Everything works fine if i pass a value in Id but if i dont pass value in ID , i always end with Error 404 </p>
  
  <pre><code>GET RequestFailed RequestFailed --&gt; Status: (404) 
  Response: {
  HTTP Status 404 - Not Found
  --------------------------------------------------------------------------------
  
  type Status report
  
  messageNot Found
  
  descriptionThe requested resource is not available.
  
  --------------------------------------------------------------------------------
  
  GlassFish Server Open Source Edition 4.0 
  </code></pre>
  
  <p>How to capture it and show my own error.</p>
  
  <p>Could any one help me in this,as i am very new to this.</p>