users@jersey.java.net

Re: [Jersey] runtime exception for not yet implemented methods ?

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 18 May 2009 09:44:33 +0200

On May 17, 2009, at 2:32 PM, Felipe Gaúcho wrote:

> for now I am using the WebServiceException as my runtime default
> exception:
>
> @PUT
> @Produces( { MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
> @Consumes( { MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
> @Path("slot/add")
> public FpTimeSlot addSlot(FpTimeSlot slot) {
> throw new WebServiceException("not yet implemented");
> }
>
>
> any other alternative, from the JAX-RS side ?
>

This seems to be more of an implementation detail. In this respect a
500 response is unsuitable. I think a 404 response is more suitable.

Paul.