RE: Re: can not return description in put

2011-06-16 Thread Bram van der Waaij
Hi, The put method is being called, so overriding is working i assume. Overriding the put (representation, variant) is not working, then the put call is not handled. Which i can understand because i do not use negotiation and therefore this version of the put method should not be called. I tri

RE: Re: can not return description in put

2011-06-15 Thread gonzajg
putResource(){ } etc. So I really don't know if overriding put methods work. -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/can-not-return-description-in-put-tp6474740p6479427.html Sent from the Restlet Discuss mailing list archive at Nabbl

RE: Re: can not return description in put

2011-06-15 Thread Bram van der Waaij
Nop, unfortunately both options produce the same result. The clientresource.getStatus().getDescription() call on a Get returns my message from the setStatus at the server The clientresource.getStatus().getDescription() call on a Put returns the description of the status error code (400 -> Bad r

Re: can not return description in put

2011-06-14 Thread gonzajg
Hi Bram, try: getResponse().setStatus(status); or Response.getCurrent().setStatus(status); hope it helps! -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/can-not-return-description-in-put-tp6474740p6475166.html Sent from the Restlet Discuss mailing list

can not return description in put

2011-06-14 Thread Bram van der Waaij
Hello list, Can you explain to me how to return a description with a client_error status in a PUT handler? Things are working in the GET handler, but for some reason i can not get it working in the put. In the client the error_code is available, but my description "Payload is not in JSON format