Hi Nicolas,
> Yes, you're absolutely right, that's in the JAX RS specifications. I was just 
> wondering whether RESTlet had an extension to the basic specifications that 
> allowed more control over what error code was used (an @Error(400) 
> annotation, for example).
>   
The way to give more information: You could get the query parameters as 
String, or as MultivaluedMap. Than you could create the error response 
yourself, use the error code you want and give details as much as needed.

It's a good idea, to be more detailed in the error messages here, but 
for me it's a problem of time to implement it. A generic solution could 
be "the query parameter with name count is not a valid number" or 
something like that.

best regards
   Stephan

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2381202

Reply via email to