|
From: Bill B. <bb...@re...> - 2008-06-05 16:00:32
|
I haven't put a lot of thought into this. I guess have two things: 1. Allow return of a Response object in the client framework. 2. An method annotation that says that the return value is a status code @StatusCode or something 3. Allow returning a Response.Status enum 4. Throw a WebApplicationExceptoin iif, the response falls into an error code bucket. Thoughts? Christian Sadilek wrote: > The HttpClientInvoker throws a RuntimeException when a status other then > SC_OK is returned by the executed method. What if the method returns > Response.created(uri).build()? Why should the HttpClientInvoker throw an > exception in case of SC_CREATED (201)? > > In general how do I check if the request went well? Is there a way to > retrieve the http status code on the client? > > Thanks, > Christian > > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > > > ------------------------------------------------------------------------ > > _______________________________________________ > Resteasy-developers mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/resteasy-developers -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |