I have done this tutorial and now I want to throw an error from this webservice, like HTTP error code 403 or 400.
403
400
How can i do this? I noti
You can do it like this.
@GET public Response check(@QueryParam("username") String username) { if (facade.checkUser(username)) { return Response.status(Response.Status.NOT_FOUND).build(); } return Response.ok().build(); }