title: Add message error to response body in Jersey
body: <p>I have this endpoint:</p>
  
  <pre><code>    @POST
      @Path("login")
      @Consumes(MediaType.APPLICATION_JSON)
      public Response doLogin(LoginCredentials loginCredentials) {
          try {
              usersService.validate(loginCredentials);
              return Response.ok().build();
          } catch (InvalidCredentialsException e) {
              return Response.status(Response.Status.UNAUTHORIZED).build();
          } catch (NotAuthorizedUserException e) {
              return Response.status(Response.Status.UNAUTHORIZED).build();
          }
      }
  </code></pre>
  
  <p>In the <code>UNAUTHORIZED</code> cases, I want to send a message to specify the concrete error. How can do that?</p>
  
  <p>In case where response is <code>ok</code>, I do that:</p>
  
  <p>return <code>Response.ok("Some message here").build();</code></p>