title: Exception could not be mapped to a response, re-throwing to the HTTP container java.io.EOFException: No content to map to Object due to end of input
body: <p>I got a web service method </p>
  
  <pre><code>@Override
  @GET
  @ResponseStatus(value=HttpStatus.OK)
  @Produces(MediaType.APPLICATION_JSON)
  public void getInfo(HttpServletRequest req) {
  
  }
  </code></pre>
  
  <p>with return type void, I can't change the return type because this method is comming from an interface and I want to send ok response from the method, for that I have used  <strong>@ResponseStatus(value=HttpStatus.OK)</strong>, but when I am requsting the service I am getting:</p>
  
  <pre><code>Exception could not be mapped to a response, re-throwing to the HTTP container java.io.EOFException: No content to map to Object due to end of input  
  </code></pre>
  
  <p>any solution is appreciated.</p>