Java EE

From Dogtag
Jump to: navigation, search

Creating Web Services

Custom Exception Message

Response response = Response.status(Response.Status.FORBIDDEN)
    .entity("Invalid password").build();

throw new WebApplicationException(response);

References