Custom Server Side Data Validation
http://phpgrid.com/example/custom-data-validation/
For direct server side error response, please see:
http://phpgrid.uservoice.com/knowledgebase/articles/325894
For development purpose, you can also view the server side error by turning on the DEBUG flag in conf.php. Please see http://phpgrid.com/documentation/debug/