I have a scenario in GET. Suppose i receive a request and there is some
error and i want to return 500 but i don;t want to return any message with
it instead just the error code. How can i do that. I tried that by returning
null in the representation but that give all kind of exception trace on the
server which is not what i wanted.
I am using the following:
@Get
public Representation get() {
//Something wrong here
setStatus(Status.SERVER_ERROR_INTERNAL);
return null;
}
Any clues or pointers on this is appreciated.
Thanks,
Rahul
--
Rahul Juneja
Phone : (631) 681-9996
Fax : (206) 339-9047
http://techlabs.thoughtclicks.com
http://finance.thoughtclicks.com
---------------------------------------------------------------------------
The thing always happens that you really believe in;
and the belief in a thing makes it happen.
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2395093