@POST @Path("/good") public Response doGoodDeed() { goodStuff.doSomethingGood(); try { return Response.created(new URI("http://www.lifeasageek.com")).build(); } catch (URISyntaxException ex) { return Response.serverError().build(); } }