PDA

View Full Version : Grid with RESTful Store



benshort
25 Feb 2010, 4:06 AM
Hi,

I have used the RESTful Store example as a base for some crud operations in by application.

What I can't work out is how I return a server side error to the client. For instance I have a username column. The data in this column must be unique. If a duplicate is added I have tried returning the following json from the server


{"success":false, "message":"Username already exists"}

and also returning a http error code of 400.

No error is reported on the client side with either response.

How can I solve this?

Ben

benshort
25 Feb 2010, 4:59 AM
Found the exception event on the proxy that does what I need